about summary refs log tree commit diff
path: root/tests/rustdoc-ui/invalid_associated_const.stderr
blob: 5eaddc2b8c984bfcf67c409fb979942e08ee1ba7 (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
error[E0229]: associated type bindings are not allowed here
  --> $DIR/invalid_associated_const.rs:4:17
   |
LL |     type A: S<C<X = 0i32> = 34>;
   |                 ^^^^^^^^ associated type not allowed here
   |
help: consider removing this type binding
   |
LL |     type A: S<C<X = 0i32> = 34>;
   |                ~~~~~~~~~~

error[E0229]: associated type bindings are not allowed here
  --> $DIR/invalid_associated_const.rs:4:17
   |
LL |     type A: S<C<X = 0i32> = 34>;
   |                 ^^^^^^^^ associated type not allowed here
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
help: consider removing this type binding
   |
LL |     type A: S<C<X = 0i32> = 34>;
   |                ~~~~~~~~~~

error: aborting due to 2 previous errors

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