1error: float literals must have an integer part 2 --> $DIR/issue-52496.rs:4:24 3 | 4LL | let _ = Foo { bar: .5, baz: 42 }; 5 | ^^ help: must have an integer part: `0.5` 6 7error: expected one of `,` or `}`, found `.` 8 --> $DIR/issue-52496.rs:8:22 9 | 10LL | let _ = Foo { bar.into(), bat: -1, . }; 11 | --- ^ expected one of `,` or `}` 12 | | 13 | while parsing this struct 14 15error: expected identifier, found `.` 16 --> $DIR/issue-52496.rs:8:40 17 | 18LL | let _ = Foo { bar.into(), bat: -1, . }; 19 | --- ^ expected identifier 20 | | 21 | while parsing this struct 22 23error[E0063]: missing field `bat` in initializer of `Foo` 24 --> $DIR/issue-52496.rs:4:13 25 | 26LL | let _ = Foo { bar: .5, baz: 42 }; 27 | ^^^ missing `bat` 28 29error[E0063]: missing fields `bar` and `baz` in initializer of `Foo` 30 --> $DIR/issue-52496.rs:8:13 31 | 32LL | let _ = Foo { bar.into(), bat: -1, . }; 33 | ^^^ missing `bar` and `baz` 34 35error: aborting due to 5 previous errors 36 37For more information about this error, try `rustc --explain E0063`. 38