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