]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2093-infer-outlives/nested-structs.rs
Rollup merge of #106470 - ehuss:tidy-no-wasm, r=Mark-Simulacrum
[rust.git] / tests / ui / rfc-2093-infer-outlives / nested-structs.rs
1 #![feature(rustc_attrs)]
2
3 #[rustc_outlives]
4 struct Foo<'a, T> { //~ ERROR rustc_outlives
5     field1: Bar<'a, T>
6 }
7
8 struct Bar<'b, U> {
9     field2: &'b U
10 }
11
12 fn main() {}