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