]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2093-infer-outlives/explicit-struct.rs
Rollup merge of #106397 - compiler-errors:new-solver-impl-wc, r=lcnr
[rust.git] / tests / ui / rfc-2093-infer-outlives / explicit-struct.rs
1 #![feature(rustc_attrs)]
2
3 #[rustc_outlives]
4 struct Foo<'b, U> { //~ ERROR rustc_outlives
5     bar: Bar<'b, U>
6 }
7
8 struct Bar<'a, T> where T: 'a {
9     x: &'a (),
10     y: T,
11 }
12
13 fn main() {}