blob: 2f5ca82b2fac329440d26c3acb9509f5cd43ef15 [file] [log] [blame] [edit]
//@ run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]
struct thing { x: isize, }
impl Drop for thing {
fn drop(&mut self) {}
}
fn thing() -> thing {
thing {
x: 0
}
}
impl thing {
pub fn f(self) {}
}
pub fn main() {
let z = thing();
(z).f();
}