mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
15 lines
577 B
Rust
15 lines
577 B
Rust
use std::ops::Deref;
|
|
trait Foo {
|
|
type Bar<'a>: Deref<Target = <Self>::Bar<Target = Self>>;
|
|
//~^ ERROR associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
|
|
//~| HELP add missing
|
|
//~| ERROR associated type bindings are not allowed here
|
|
//~| HELP consider removing this type binding
|
|
//~| ERROR associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
|
|
//~| HELP add missing
|
|
//~| ERROR associated type bindings are not allowed here
|
|
//~| HELP consider removing this type binding
|
|
}
|
|
|
|
fn main() {}
|