diff options
Diffstat (limited to 'tests/ui/missing/missing-derivable-attr.rs')
| -rw-r--r-- | tests/ui/missing/missing-derivable-attr.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/missing/missing-derivable-attr.rs b/tests/ui/missing/missing-derivable-attr.rs new file mode 100644 index 00000000000..58c94de5059 --- /dev/null +++ b/tests/ui/missing/missing-derivable-attr.rs @@ -0,0 +1,16 @@ +trait MyEq { + fn eq(&self, other: &Self) -> bool; +} + +struct A { + x: isize +} + +impl MyEq for isize { + fn eq(&self, other: &isize) -> bool { *self == *other } +} + +impl MyEq for A {} //~ ERROR not all trait items implemented, missing: `eq` + +fn main() { +} |
