mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +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() {}
|