blob: 39e41a59ef44b737af5df3d8f5a9a7008d142778 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
struct NoCloneOrEq;
#[derive(PartialEq)]
struct E {
x: NoCloneOrEq //~ ERROR binary operation `==` cannot be applied to type `NoCloneOrEq`
//~^ ERROR binary operation `!=` cannot be applied to type `NoCloneOrEq`
}
#[derive(Clone)]
struct C {
x: NoCloneOrEq
//~^ ERROR `NoCloneOrEq: Clone` is not satisfied
}
fn main() {}
|