rust/tests/ui/rfcs/rfc-2093-infer-outlives/self-dyn.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
195 B
Rust
Raw Normal View History

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