]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-2063-resource.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-2063-resource.rs
1 // check-pass
2 #![allow(dead_code)]
3 // test that autoderef of a type like this does not
4 // cause compiler to loop. Note that no instances
5 // of such a type could ever be constructed.
6
7 struct S {
8 x: X,
9 to_str: (),
10 }
11
12 struct X(Box<S>);
13
14 fn main() {}