]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
60c5eb7d 1// check-pass
0bf4aa26 2#![allow(dead_code)]
223e47cc
LB
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.
c1a9b12d
SL
6
7struct S {
1a4d82fc 8 x: X,
223e47cc
LB
9 to_str: (),
10}
11
c1a9b12d 12struct X(Box<S>);
223e47cc 13
1a4d82fc 14fn main() {}