summaryrefslogtreecommitdiffstats
path: root/tests/ui/structs/struct-fields-hints-no-dupe.rs
blob: 987cf726fec292ef6e3f28077630a44ddddf2515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct A {
    foo : i32,
    car : i32,
    barr : i32
}

fn main() {
    let a = A {
        foo : 5,
        bar : 42,
        //~^ ERROR struct `A` has no field named `bar`
        car : 9,
    };
}