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 `}` here
13 | while parsing this struct
15 error: expected identifier, found `.`
16 --> $DIR/issue-52496.rs:8:40
18 LL | let _ = Foo { bar.into(), bat: -1, . };
19 | --- ^ expected identifier
21 | while parsing this struct
23 error[E0063]: missing field `bat` in initializer of `Foo`
24 --> $DIR/issue-52496.rs:4:13
26 LL | let _ = Foo { bar: .5, baz: 42 };
29 error[E0063]: missing fields `bar`, `baz` in initializer of `Foo`
30 --> $DIR/issue-52496.rs:8:13
32 LL | let _ = Foo { bar.into(), bat: -1, . };
33 | ^^^ missing `bar`, `baz`
35 error: aborting due to 5 previous errors
37 For more information about this error, try `rustc --explain E0063`.