mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
14 lines
195 B
Rust
14 lines
195 B
Rust
#![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() {}
|