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