14 lines
183 B
Rust
14 lines
183 B
Rust
#![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() {}
|