blob: 7e7e3b860242edc89f117bbfd9d86a44ad0af1f7 [file] [log] [blame]
#![crate_type="lib"]
pub struct S {
x: isize,
}
impl Drop for S {
fn drop(&mut self) {
println!("goodbye");
}
}
pub fn f() {
let x = S { x: 1 };
let y = x;
let _z = y;
}