1 2 3 4 5 6 7 8
struct Foo { field1: i32, field1: i32, //~^ ERROR field `field1` is already declared [E0124] } fn main() { }