rust/tests/ui/rfc-2093-infer-outlives/explicit-enum.rs
2023-01-11 09:32:08 +00:00

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() {}