summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2093-infer-outlives/self-dyn.rs
blob: c53d6c18ff65aea3dcd593d3911608a1de3a5c2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(rustc_attrs)]

trait Trait<'x, 's, T> where T: 'x,
      's: {
}

#[rustc_outlives]
struct Foo<'a, 'b, A> //~ ERROR rustc_outlives
{
    foo: Box<dyn Trait<'a, 'b, A>>
}

fn main() {}