1 2 3 4 5 6 7 8 9 10
struct BuildData { foo: isize, } fn main() { let foo = BuildData { foo: 0, foo: 0 //~ ERROR field `foo` specified more than once }; }