]> git.lizzy.rs Git - rust.git/blob - src/test/ui/missing/missing-derivable-attr.rs
Auto merge of #97657 - Urgau:check-cfg-many-mut, r=oli-obk
[rust.git] / src / test / ui / missing / missing-derivable-attr.rs
1 trait MyEq {
2     fn eq(&self, other: &Self) -> bool;
3 }
4
5 struct A {
6     x: isize
7 }
8
9 impl MyEq for isize {
10     fn eq(&self, other: &isize) -> bool { *self == *other }
11 }
12
13 impl MyEq for A {}  //~ ERROR not all trait items implemented, missing: `eq`
14
15 fn main() {
16 }