mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
14 lines
263 B
Rust
14 lines
263 B
Rust
struct NoCloneOrEq;
|
|
|
|
#[derive(PartialEq)]
|
|
struct E {
|
|
x: NoCloneOrEq //~ ERROR binary operation `==` cannot be applied to type `NoCloneOrEq`
|
|
}
|
|
#[derive(Clone)]
|
|
struct C {
|
|
x: NoCloneOrEq
|
|
//~^ ERROR `NoCloneOrEq: Clone` is not satisfied
|
|
}
|
|
|
|
|
|
fn main() {}
|