1 2 3 4 5 6 7 8 9 10
// run-rustfix struct Foo; impl Drop for Foo { fn drop(&mut self) {} } fn main() { drop(&mut Foo) //~ ERROR explicit use of destructor method }