mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
16 lines
385 B
Rust
16 lines
385 B
Rust
//~ ERROR the parameter type `Self` may not live long enough
|
|
|
|
trait GatTrait {
|
|
type Gat<'a>
|
|
where
|
|
Self: 'a;
|
|
}
|
|
|
|
trait SuperTrait<T>: for<'a> GatTrait<Gat<'a> = T> {
|
|
fn c(&self) -> dyn SuperTrait<T>;
|
|
//~^ ERROR associated item referring to unboxed trait object for its own trait
|
|
//~| ERROR the trait `SuperTrait` cannot be made into an object
|
|
}
|
|
|
|
fn main() {}
|