]>
Commit | Line | Data |
---|---|---|
1 | // run-pass | |
2 | #![allow(dead_code)] | |
3 | #![allow(non_camel_case_types)] | |
4 | // pretty-expanded FIXME #23616 | |
5 | ||
6 | struct thing { x: isize, } | |
7 | ||
8 | impl Drop for thing { | |
9 | fn drop(&mut self) {} | |
10 | } | |
11 | ||
12 | fn thing() -> thing { | |
13 | thing { | |
14 | x: 0 | |
15 | } | |
16 | } | |
17 | ||
18 | impl thing { | |
19 | pub fn f(self) {} | |
20 | } | |
21 | ||
22 | pub fn main() { | |
23 | let z = thing(); | |
24 | (z).f(); | |
25 | } |