mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
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() {}
|