]>
Commit | Line | Data |
---|---|---|
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 | |
7 | struct S { | |
1a4d82fc | 8 | x: X, |
223e47cc LB |
9 | to_str: (), |
10 | } | |
11 | ||
c1a9b12d | 12 | struct X(Box<S>); |
223e47cc | 13 | |
1a4d82fc | 14 | fn main() {} |