summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/struct-field-numeric-shorthand.rs
blob: 645abd9c7192dc740f3ffd8a6eebf72a8bf7e347 (plain)
1
2
3
4
5
6
7
8
9
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`
}