]> git.lizzy.rs Git - rust.git/blob - tests/ui/type/type-recursive-box-shadowed.rs
Rollup merge of #106244 - atouchet:readme3, r=workingjubilee
[rust.git] / tests / ui / type / type-recursive-box-shadowed.rs
1 //FIXME(compiler-errors): This fixup should suggest the full box path, not just `Box`
2
3 struct Box<T> {
4     t: T,
5 }
6
7 struct Foo {
8     //~^ ERROR recursive type `Foo` has infinite size
9     inner: Foo,
10 }
11
12 fn main() {}