]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-3220.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-3220.rs
CommitLineData
b7449926 1// run-pass
0bf4aa26 2#![allow(dead_code)]
b7449926 3#![allow(non_camel_case_types)]
c34b1796
AL
4// pretty-expanded FIXME #23616
5
6struct thing { x: isize, }
223e47cc
LB
7
8impl Drop for thing {
1a4d82fc 9 fn drop(&mut self) {}
223e47cc
LB
10}
11
12fn thing() -> thing {
13 thing {
14 x: 0
15 }
16}
970d7e83
LB
17
18impl thing {
19 pub fn f(self) {}
20}
223e47cc
LB
21
22pub fn main() {
23 let z = thing();
24 (z).f();
25}