rust/src/test/ui/rfc-2093-infer-outlives/explicit-dyn.rs
2018-12-25 21:08:33 -07:00

14 lines
195 B
Rust

#![feature(dyn_trait)]
#![feature(rustc_attrs)]
trait Trait<'x, T> where T: 'x {
}
#[rustc_outlives]
struct Foo<'a, A> //~ ERROR rustc_outlives
{
foo: Box<dyn Trait<'a, A>>
}
fn main() {}