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