summaryrefslogtreecommitdiffstats
path: root/src/test/ui/structs/struct-fields-too-many.rs
blob: 8be8dcbf13cbc4ea9cd9fc0c03160331fa8c0244 (plain)
1
2
3
4
5
6
7
8
9
10
11
struct BuildData {
    foo: isize,
}

fn main() {
    let foo = BuildData {
        foo: 0,
        bar: 0
        //~^ ERROR struct `BuildData` has no field named `bar`
    };
}