rust/tests/ui/structs/struct-fields-dupe.rs
2023-01-11 09:32:08 +00:00

10 lines
163 B
Rust

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