]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/struct-field-numeric-shorthand.rs
Merge commit '15c8d31392b9fbab3b3368b67acc4bbe5983115a' into cranelift-rebase
[rust.git] / src / test / 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 }