]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/assoc-const-underscore-semantic-fail.stderr
Merge commit '4236289b75ee55c78538c749512cdbeea5e1c332' into update-rustfmt
[rust.git] / src / test / ui / parser / assoc-const-underscore-semantic-fail.stderr
1 error: `const` items in this context need a name
2   --> $DIR/assoc-const-underscore-semantic-fail.rs:7:15
3    |
4 LL |         const _: () = ();
5    |               ^ `_` is not a valid name for this `const` item
6
7 error: `const` items in this context need a name
8   --> $DIR/assoc-const-underscore-semantic-fail.rs:10:15
9    |
10 LL |         const _: () = ();
11    |               ^ `_` is not a valid name for this `const` item
12
13 error: `const` items in this context need a name
14   --> $DIR/assoc-const-underscore-semantic-fail.rs:15:15
15    |
16 LL |         const _: () = ();
17    |               ^ `_` is not a valid name for this `const` item
18
19 error[E0438]: const `_` is not a member of trait `A`
20   --> $DIR/assoc-const-underscore-semantic-fail.rs:10:9
21    |
22 LL |         const _: () = ();
23    |         ^^^^^^^^^^^^^^^^^ not a member of trait `A`
24
25 error: aborting due to 4 previous errors
26
27 For more information about this error, try `rustc --explain E0438`.