rust/tests/ui/error-codes/E0124.rs
2023-01-11 09:32:08 +00:00

9 lines
122 B
Rust

struct Foo {
field1: i32,
field1: i32,
//~^ ERROR field `field1` is already declared [E0124]
}
fn main() {
}