summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2093-infer-outlives/nested-enum.rs
blob: 0cd706e7ab6d475cd9a41199f0bf8d6de703b882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(rustc_attrs)]

#[rustc_outlives]
enum Foo<'a, T> { //~ ERROR rustc_outlives

    One(Bar<'a, T>)
}

struct Bar<'b, U> {
    field2: &'b U
}

fn main() {}