blob: c330c27fea0a9cc1bcfbcaf162d8337123b85c07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#![feature(rustc_attrs)]
#[rustc_outlives]
enum Foo<'a, U> { //~ ERROR rustc_outlives
One(Bar<'a, U>)
}
struct Bar<'x, T> where T: 'x {
x: &'x (),
y: T,
}
fn main() {}
|