mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
14 lines
216 B
Rust
14 lines
216 B
Rust
#![feature(rustc_attrs)]
|
|
|
|
trait Trait<'x, T> where T: 'x {
|
|
type Type;
|
|
}
|
|
|
|
#[rustc_outlives]
|
|
struct Foo<'a, A, B> where A: Trait<'a, B> //~ ERROR rustc_outlives
|
|
{
|
|
foo: <A as Trait<'a, B>>::Type
|
|
}
|
|
|
|
fn main() {}
|