]> git.lizzy.rs Git - rust.git/blob - src/test/ui/missing/missing-derivable-attr.rs
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[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 }