mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
14 lines
194 B
Rust
14 lines
194 B
Rust
#![feature(rustc_attrs)]
|
|
|
|
#[rustc_outlives]
|
|
struct Foo<'a, 'b, T> { //~ ERROR rustc_outlives
|
|
field1: dyn Bar<'a, 'b, T>
|
|
}
|
|
|
|
trait Bar<'x, 's, U>
|
|
where U: 'x,
|
|
Self:'s
|
|
{}
|
|
|
|
fn main() {}
|