rust/src/test/ui/parser/struct-field-numeric-shorthand.rs

7 lines
202 B
Rust
Raw Normal View History

struct Rgb(u8, u8, u8);
fn main() {
let _ = Rgb { 0, 1, 2 }; //~ ERROR expected identifier, found `0`
//~| ERROR missing fields `0`, `1`, `2` in initializer of `Rgb`
}