2021-05-16 18:33:41 +02:00
|
|
|
use std::ops::Deref;
|
|
|
|
trait Foo {
|
|
|
|
type Bar<'a>: Deref<Target = <Self>::Bar<Target = Self>>;
|
2023-02-23 10:27:06 -07:00
|
|
|
//~^ ERROR associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
|
2021-05-16 18:33:41 +02:00
|
|
|
//~| HELP add missing
|
2024-05-27 23:53:46 +02:00
|
|
|
//~| ERROR associated item constraints are not allowed here
|
|
|
|
//~| HELP consider removing this associated item binding
|
2024-04-16 11:11:50 +05:30
|
|
|
//~| ERROR associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
|
2024-03-20 12:52:54 -04:00
|
|
|
//~| HELP add missing
|
2024-05-27 23:53:46 +02:00
|
|
|
//~| ERROR associated item constraints are not allowed here
|
|
|
|
//~| HELP consider removing this associated item binding
|
2021-05-16 18:33:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|