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

9 lines
123 B
Rust

struct BuildData {
foo: isize,
foo: isize,
//~^ ERROR field `foo` is already declared [E0124]
}
fn main() {
}