]> git.lizzy.rs Git - rust.git/blob - src/test/ui/missing/missing-derivable-attr.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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 }