fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
942 B27 linesraw
1error: `const` items in this context need a name
2  --> $DIR/assoc-const-underscore-semantic-fail.rs:7:15
3   |
4LL |         const _: () = ();
5   |               ^ `_` is not a valid name for this `const` item
6
7error: `const` items in this context need a name
8  --> $DIR/assoc-const-underscore-semantic-fail.rs:10:15
9   |
10LL |         const _: () = ();
11   |               ^ `_` is not a valid name for this `const` item
12
13error: `const` items in this context need a name
14  --> $DIR/assoc-const-underscore-semantic-fail.rs:15:15
15   |
16LL |         const _: () = ();
17   |               ^ `_` is not a valid name for this `const` item
18
19error[E0438]: const `_` is not a member of trait `A`
20  --> $DIR/assoc-const-underscore-semantic-fail.rs:10:9
21   |
22LL |         const _: () = ();
23   |         ^^^^^^^^^^^^^^^^^ not a member of trait `A`
24
25error: aborting due to 4 previous errors
26
27For more information about this error, try `rustc --explain E0438`.