]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/struct-field-numeric-shorthand.rs
Auto merge of #106916 - lukas-code:overlapping-substs, r=estebank
[rust.git] / tests / ui / parser / struct-field-numeric-shorthand.rs
1 struct Rgb(u8, u8, u8);
2
3 fn main() {
4     let _ = Rgb { 0, 1, 2 };
5     //~^ ERROR expected identifier, found `0`
6     //~| ERROR expected identifier, found `1`
7     //~| ERROR expected identifier, found `2`
8     //~| ERROR missing fields `0`, `1` and `2` in initializer of `Rgb`
9 }