]> git.lizzy.rs Git - rust.git/blob - src/test/ui/drop/drop-trait.rs
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[rust.git] / src / test / ui / drop / drop-trait.rs
1 // run-pass
2 #![allow(dead_code)]
3 struct Foo {
4     x: isize
5 }
6
7 impl Drop for Foo {
8     fn drop(&mut self) {
9         println!("bye");
10     }
11 }
12
13 pub fn main() {
14     let _x: Foo = Foo { x: 3 };
15 }