]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/struct-field-numeric-shorthand.stderr
Rollup merge of #57004 - nnethercote:TS-change-Stream, r=petrochenkov
[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 }; //~ ERROR expected identifier, found `0`
5    |             ---   ^ expected identifier
6    |             |
7    |             while parsing this struct
8
9 error[E0063]: missing fields `0`, `1`, `2` in initializer of `Rgb`
10   --> $DIR/struct-field-numeric-shorthand.rs:4:13
11    |
12 LL |     let _ = Rgb { 0, 1, 2 }; //~ ERROR expected identifier, found `0`
13    |             ^^^ missing `0`, `1`, `2`
14
15 error: aborting due to 2 previous errors
16
17 For more information about this error, try `rustc --explain E0063`.