2016-10-26 19:15:13 -05:00
|
|
|
struct Rgb(u8, u8, u8);
|
|
|
|
|
|
|
|
fn main() {
|
2019-01-20 02:37:06 -06:00
|
|
|
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`, `2` in initializer of `Rgb`
|
2016-10-26 19:15:13 -05:00
|
|
|
}
|