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::drop(&mut Foo) //~ ERROR explicit use of destructor method }