]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2093-infer-outlives/self-dyn.rs
Rollup merge of #99479 - Enselic:import-can-be-without-id, r=camelid
[rust.git] / src / test / ui / rfc-2093-infer-outlives / self-dyn.rs
1 #![feature(rustc_attrs)]
2
3 trait Trait<'x, 's, T> where T: 'x,
4       's: {
5 }
6
7 #[rustc_outlives]
8 struct Foo<'a, 'b, A> //~ ERROR rustc_outlives
9 {
10     foo: Box<dyn Trait<'a, 'b, A>>
11 }
12
13 fn main() {}