summaryrefslogtreecommitdiffstats
path: root/tests/ui/structs/struct-fields-dupe.rs
blob: 2fa25a33545dfe21feace9fda7097579cddfad48 (plain)
1
2
3
4
5
6
7
8
9
10
struct BuildData {
    foo: isize,
}

fn main() {
    let foo = BuildData {
        foo: 0,
        foo: 0 //~ ERROR field `foo` specified more than once
    };
}