summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-associated-types/issue-88595.stderr
blob: 2b1a25acfa430f150c62f8bdb01153e348e617f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: non-defining opaque type use in defining scope
  --> $DIR/issue-88595.rs:21:23
   |
LL |     fn a(&'a self) -> Self::B<'a> {}
   |                       ^^^^^^^^^^^ generic argument `'a` used twice
   |
note: for this opaque type
  --> $DIR/issue-88595.rs:19:18
   |
LL |     type B<'b> = impl Clone;
   |                  ^^^^^^^^^^

error: aborting due to previous error