diff options
Diffstat (limited to 'src/test/ui/error-codes/E0040.rs')
-rw-r--r-- | src/test/ui/error-codes/E0040.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/ui/error-codes/E0040.rs b/src/test/ui/error-codes/E0040.rs deleted file mode 100644 index 9ffc42d0c..000000000 --- a/src/test/ui/error-codes/E0040.rs +++ /dev/null @@ -1,18 +0,0 @@ -// run-rustfix -struct Foo { - x: i32, -} - -impl Drop for Foo { - fn drop(&mut self) { - println!("kaboom"); - } -} - -fn main() { - let mut x = Foo { x: -7 }; - x.x = 0; - println!("{}", x.x); - x.drop(); - //~^ ERROR E0040 -} |