1 2 3 4 5 6 7 8 9 10 11 12 13 14
#[derive(Copy, Clone)] struct Flags; trait A { } impl<T> Drop for T where T: A { //~^ ERROR E0120 //~| ERROR E0210 fn drop(&mut self) { } } fn main() {}