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