rust/tests/ui/error-codes/E0124.rs

9 lines
122 B
Rust

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