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