fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
1.0 KiB33 linesraw
1error: expected identifier, found `0`
2  --> $DIR/struct-field-numeric-shorthand.rs:4:19
3   |
4LL |     let _ = Rgb { 0, 1, 2 };
5   |             ---   ^ expected identifier
6   |             |
7   |             while parsing this struct
8
9error: expected identifier, found `1`
10  --> $DIR/struct-field-numeric-shorthand.rs:4:22
11   |
12LL |     let _ = Rgb { 0, 1, 2 };
13   |             ---      ^ expected identifier
14   |             |
15   |             while parsing this struct
16
17error: expected identifier, found `2`
18  --> $DIR/struct-field-numeric-shorthand.rs:4:25
19   |
20LL |     let _ = Rgb { 0, 1, 2 };
21   |             ---         ^ expected identifier
22   |             |
23   |             while parsing this struct
24
25error[E0063]: missing fields `0`, `1`, `2` in initializer of `Rgb`
26  --> $DIR/struct-field-numeric-shorthand.rs:4:13
27   |
28LL |     let _ = Rgb { 0, 1, 2 };
29   |             ^^^ missing `0`, `1`, `2`
30
31error: aborting due to 4 previous errors
32
33For more information about this error, try `rustc --explain E0063`.