summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/assoc-const-underscore-semantic-fail.stderr
blob: 538bf0ec100dc6ad26e4b5fbfc7a12eb221e9f40 (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
error: `const` items in this context need a name
  --> $DIR/assoc-const-underscore-semantic-fail.rs:7:15
   |
LL |         const _: () = ();
   |               ^ `_` is not a valid name for this `const` item

error: `const` items in this context need a name
  --> $DIR/assoc-const-underscore-semantic-fail.rs:10:15
   |
LL |         const _: () = ();
   |               ^ `_` is not a valid name for this `const` item

error: `const` items in this context need a name
  --> $DIR/assoc-const-underscore-semantic-fail.rs:15:15
   |
LL |         const _: () = ();
   |               ^ `_` is not a valid name for this `const` item

error[E0438]: const `_` is not a member of trait `A`
  --> $DIR/assoc-const-underscore-semantic-fail.rs:10:9
   |
LL |         const _: () = ();
   |         ^^^^^^^^^^^^^^^^^ not a member of trait `A`

error: aborting due to 4 previous errors

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