rust/tests/ui/issues/issue-3220.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
323 B
Rust
Raw Normal View History

// run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]
// pretty-expanded FIXME #23616
struct thing { x: isize, }
impl Drop for thing {
2013-09-17 01:18:07 +00:00
fn drop(&mut self) {}
}
2012-09-05 22:58:43 +00:00
fn thing() -> thing {
thing {
x: 0
}
}
impl thing {
pub fn f(self) {}
}
pub fn main() {
let z = thing();
2013-02-15 10:44:18 +00:00
(z).f();
}