1 2 3 4 5 6 7 8 9
trait MyTrait { fn foo(&self) {} } impl Drop for dyn MyTrait { //~^ ERROR E0120 fn drop(&mut self) {} } fn main() {}