summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type/type-recursive-box-shadowed.rs
blob: e141c2149ffea54fec419abc699dea58196554ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//FIXME(compiler-errors): This fixup should suggest the full box path, not just `Box`

struct Box<T> {
    t: T,
}

struct Foo {
    //~^ ERROR recursive type `Foo` has infinite size
    inner: Foo,
}

fn main() {}