fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
250 B16 linesraw
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}