summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-85347.rs
blob: 02b5fb61894e9fc60a7615532e8fcb272b2b0795 (plain)
1
2
3
4
5
6
7
8
9
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() {}