summaryrefslogtreecommitdiffstats
path: root/tests/ui/structs/struct-fields-missing.rs
blob: 0c7919d0249e9e0eea9dea190f27da7ddbd2bf39 (plain)
1
2
3
4
5
6
7
8
9
10
struct BuildData {
    foo: isize,
    bar: Box<isize>,
}

fn main() {
    let foo = BuildData { //~ ERROR missing field `bar` in initializer of `BuildData`
        foo: 0
    };
}