fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2struct Foo { 3 x: isize 4} 5 6impl Drop for Foo { 7 fn drop(&mut self) { 8 println!("kaboom"); 9 } 10} 11 12fn main() { 13 let x = Foo { x: 3 }; 14 println!("{}", x.x); 15 drop(x); //~ ERROR explicit use of destructor method 16}