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

13 lines
169 B
Rust

#![feature(rustc_attrs)]
#[rustc_outlives]
struct Foo<'a, T> { //~ ERROR rustc_outlives
field1: Bar<'a, T>
}
struct Bar<'b, U> {
field2: &'b U
}
fn main() {}