2018-04-18 21:26:21 -05:00
|
|
|
#![feature(rustc_attrs)]
|
2017-10-15 00:13:56 -05:00
|
|
|
|
2018-04-18 21:26:21 -05:00
|
|
|
trait Trait<'x, T> where T: 'x {
|
|
|
|
type Type;
|
2017-10-15 00:13:56 -05:00
|
|
|
}
|
|
|
|
|
2018-04-18 21:26:21 -05:00
|
|
|
#[rustc_outlives]
|
|
|
|
struct Foo<'a, A, B> where A: Trait<'a, B> //~ ERROR rustc_outlives
|
|
|
|
{
|
|
|
|
foo: <A as Trait<'a, B>>::Type
|
|
|
|
}
|
2017-10-15 00:13:56 -05:00
|
|
|
|
2018-04-18 21:26:21 -05:00
|
|
|
fn main() {}
|