]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-recursive-box-shadowed.rs
Merge commit '63734fcdd718cca089f84c42f3a42c0096cfd431' into sync_cg_clif-2022-05-15
[rust.git] / src / test / 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() {}