rust/src/test/ui/rfc-2093-infer-outlives/explicit-dyn.rs

14 lines
195 B
Rust
Raw Normal View History

#![feature(dyn_trait)]
#![feature(rustc_attrs)]
trait Trait<'x, T> where T: 'x {
}
#[rustc_outlives]
2018-12-25 09:56:47 -06:00
struct Foo<'a, A> //~ ERROR rustc_outlives
{
foo: Box<dyn Trait<'a, A>>
}
fn main() {}