]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-2063-resource.rs
Add 'src/tools/rustfmt/' from commit '7872306edf2e11a69aaffb9434088fd66b46a863'
[rust.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() {}