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

#[rustc_outlives]
struct Foo<'a, T> { //~ ERROR rustc_outlives
    field1: Bar<'a, T>
}

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

fn main() {}