summaryrefslogtreecommitdiffstats
path: root/tests/ui/structs/struct-fields-decl-dupe.rs
blob: 6ddf3d976b79a19f93596e68d3179a8097d594a0 (plain)
1
2
3
4
5
6
7
8
struct BuildData {
    foo: isize,
    foo: isize,
    //~^ ERROR field `foo` is already declared [E0124]
}

fn main() {
}