2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2012-11-05 19:50:01 -06:00
|
|
|
struct Foo {
|
2015-03-25 19:06:52 -05:00
|
|
|
x: isize
|
2012-11-05 19:50:01 -06:00
|
|
|
}
|
|
|
|
|
2013-02-14 13:47:00 -06:00
|
|
|
impl Drop for Foo {
|
2013-09-16 20:18:07 -05:00
|
|
|
fn drop(&mut self) {
|
2014-01-09 04:06:55 -06:00
|
|
|
println!("bye");
|
2012-11-05 19:50:01 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {
|
2013-08-17 10:37:42 -05:00
|
|
|
let _x: Foo = Foo { x: 3 };
|
2012-11-05 19:50:01 -06:00
|
|
|
}
|