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