]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/struct-field-numeric-shorthand.stderr
Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett
[rust.git] / src / test / ui / parser / struct-field-numeric-shorthand.stderr
1 error: expected identifier, found `0`
2   --> $DIR/struct-field-numeric-shorthand.rs:4:19
3    |
4 LL |     let _ = Rgb { 0, 1, 2 };
5    |             ---   ^ expected identifier
6    |             |
7    |             while parsing this struct
8
9 error: expected identifier, found `1`
10   --> $DIR/struct-field-numeric-shorthand.rs:4:22
11    |
12 LL |     let _ = Rgb { 0, 1, 2 };
13    |             ---      ^ expected identifier
14    |             |
15    |             while parsing this struct
16
17 error: expected identifier, found `2`
18   --> $DIR/struct-field-numeric-shorthand.rs:4:25
19    |
20 LL |     let _ = Rgb { 0, 1, 2 };
21    |             ---         ^ expected identifier
22    |             |
23    |             while parsing this struct
24
25 error[E0063]: missing fields `0`, `1`, `2` in initializer of `Rgb`
26   --> $DIR/struct-field-numeric-shorthand.rs:4:13
27    |
28 LL |     let _ = Rgb { 0, 1, 2 };
29    |             ^^^ missing `0`, `1`, `2`
30
31 error: aborting due to 4 previous errors
32
33 For more information about this error, try `rustc --explain E0063`.