]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0120.rs
rework error messages for incorrect inherent impls
[rust.git] / src / test / ui / error-codes / E0120.rs
1 trait MyTrait { fn foo() {} }
2
3 impl Drop for dyn MyTrait {
4               //~^ ERROR E0120
5     fn drop(&mut self) {}
6 }
7
8 fn main() {}