diff options
Diffstat (limited to 'tests/ui/suggestions/issue-85347.rs')
-rw-r--r-- | tests/ui/suggestions/issue-85347.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/suggestions/issue-85347.rs b/tests/ui/suggestions/issue-85347.rs new file mode 100644 index 000000000..02b5fb618 --- /dev/null +++ b/tests/ui/suggestions/issue-85347.rs @@ -0,0 +1,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() {} |