blob: d3ac5d2fe2f05cf0e10ad3eea7aa3f14060db6ce (
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: std::clone::Clone` is not satisfied
}
fn main() {}
|