mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-19 03:54:40 +00:00
10 lines
277 B
Rust
10 lines
277 B
Rust
struct Rgb(u8, u8, u8);
|
|
|
|
fn main() {
|
|
let _ = Rgb { 0, 1, 2 };
|
|
//~^ ERROR expected identifier, found `0`
|
|
//~| ERROR expected identifier, found `1`
|
|
//~| ERROR expected identifier, found `2`
|
|
//~| ERROR missing fields `0`, `1` and `2` in initializer of `Rgb`
|
|
}
|