blob: 6ed3e027ffa486a3c264e99c955ff03d0da5ca7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// compile-pass
#![allow(dead_code)]
// test that autoderef of a type like this does not
// cause compiler to loop. Note that no instances
// of such a type could ever be constructed.
struct S {
x: X,
to_str: (),
}
struct X(Box<S>);
fn main() {}
|