]> git.lizzy.rs Git - rust.git/blob - src/test/ui/missing/missing-derivable-attr.rs
Merge commit '54a20a02ecd0e1352a871aa0990bcc8b8b03173e' into clippyup
[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 }