If I have a struct type with an implicit field such as
And I attempt to initialize it to 0
let instance = MyStruct { 0: 0 };
With the option "use_field_init_shorthand = true", rustfmt will incorrectly shorten the initialization to:
let instance = MyStruct { 0 };
This code will no longer compile after running rustfmt.
If I have a struct type with an implicit field such as
And I attempt to initialize it to 0
With the option "use_field_init_shorthand = true", rustfmt will incorrectly shorten the initialization to:
This code will no longer compile after running rustfmt.