mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
14 lines
165 B
Rust
14 lines
165 B
Rust
#![feature(rustc_attrs)]
|
|
|
|
#[rustc_outlives]
|
|
enum Foo<'a, T> { //~ ERROR rustc_outlives
|
|
|
|
One(Bar<'a, T>)
|
|
}
|
|
|
|
struct Bar<'b, U> {
|
|
field2: &'b U
|
|
}
|
|
|
|
fn main() {}
|