]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2093-infer-outlives/self-structs.rs
Auto merge of #57129 - RalfJung:check-bounds, r=oli-obk
[rust.git] / src / test / ui / rfc-2093-infer-outlives / self-structs.rs
1 #![feature(rustc_attrs)]
2
3 #[rustc_outlives]
4 struct Foo<'a, 'b, T> { //~ ERROR rustc_outlives
5     field1: Bar<'a, 'b, T>
6 }
7
8 trait Bar<'x, 's, U>
9     where U: 'x,
10     Self:'s
11 {}
12
13 fn main() {}