about summary refs log tree commit diff
path: root/tests/ui/generic-associated-types/issue-102335-gat.stderr
blob: bcef76290fcdcfd6f1ffd7d847c12738da587990 (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[E0229]: associated item constraints are not allowed here
  --> $DIR/issue-102335-gat.rs:2:21
   |
LL |     type A: S<C<(), i32 = ()> = ()>;
   |                     ^^^^^^^^ associated item constraint not allowed here
   |
help: consider removing this associated item binding
   |
LL -     type A: S<C<(), i32 = ()> = ()>;
LL +     type A: S<C<()> = ()>;
   |

error[E0229]: associated item constraints are not allowed here
  --> $DIR/issue-102335-gat.rs:2:21
   |
LL |     type A: S<C<(), i32 = ()> = ()>;
   |                     ^^^^^^^^ associated item constraint not allowed here
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
help: consider removing this associated item binding
   |
LL -     type A: S<C<(), i32 = ()> = ()>;
LL +     type A: S<C<()> = ()>;
   |

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0229`.