summaryrefslogtreecommitdiffstats
path: root/src/test/ui/variance/variance-regions-unused-indirect.rs
blob: 6c2c24ddbc7283a9f79d636724835a5e32a56d52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Test that disallow lifetime parameters that are unused.

enum Foo<'a> { //~ ERROR parameter `'a` is never used
    //~^ ERROR recursive types `Foo` and `Bar` have infinite size
    Foo1(Bar<'a>)
}

enum Bar<'a> { //~ ERROR parameter `'a` is never used
    Bar1(Foo<'a>)
}

fn main() {}