fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2 3#![allow(dropping_references)] 4 5struct Foo; 6 7impl Drop for Foo { 8 fn drop(&mut self) {} 9} 10 11fn main() { 12 drop(&mut Foo) //~ ERROR explicit use of destructor method 13}