]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0040.rs
Auto merge of #67758 - ssomers:testing_range, r=Mark-Simulacrum
[rust.git] / src / test / ui / error-codes / E0040.rs
1 struct Foo {
2     x: i32,
3 }
4
5 impl Drop for Foo {
6     fn drop(&mut self) {
7         println!("kaboom");
8     }
9 }
10
11 fn main() {
12     let mut x = Foo { x: -7 };
13     x.drop();
14     //~^ ERROR E0040
15 }