about summary refs log tree commit diff
path: root/tests/ui/generic-associated-types/issue-88595.stderr
blob: 87dd7118c06f2bd5cb996d29c2b61b8c9c347a1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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: non-defining opaque type use in defining scope
  --> $DIR/issue-88595.rs:21:35
   |
LL |     fn a(&'a self) -> Self::B<'a> {}
   |                                   ^^
   |
note: lifetime used multiple times
  --> $DIR/issue-88595.rs:18:6
   |
LL | impl<'a> A<'a> for C {
   |      ^^
LL |     type B<'b> = impl Clone;
   |            ^^

error: aborting due to 2 previous errors