@@ -5,39 +5,29 @@ LL | let _ = Foo { bar: .5, baz: 42 };
55 | ^^ help: must have an integer part: `0.5`
66
77error: expected one of `,` or `}`, found `.`
8- --> $DIR/issue-52496.rs:9 :22
8+ --> $DIR/issue-52496.rs:8 :22
99 |
1010LL | let _ = Foo { bar.into(), bat: -1, . };
1111 | --- ^ expected one of `,` or `}` here
1212 | |
1313 | while parsing this struct
1414
1515error: expected identifier, found `.`
16- --> $DIR/issue-52496.rs:9 :40
16+ --> $DIR/issue-52496.rs:8 :40
1717 |
1818LL | let _ = Foo { bar.into(), bat: -1, . };
1919 | --- ^ expected identifier
2020 | |
2121 | while parsing this struct
2222
23- error[E0308]: mismatched types
24- --> $DIR/issue-52496.rs:4:24
25- |
26- LL | let _ = Foo { bar: .5, baz: 42 };
27- | ^^ expected f64, found f32
28- help: change the type of the numeric literal from `f32` to `f64`
29- |
30- LL | let _ = Foo { bar: .5f64, baz: 42 };
31- | ^^^^^
32-
3323error[E0063]: missing field `bat` in initializer of `Foo`
3424 --> $DIR/issue-52496.rs:4:13
3525 |
3626LL | let _ = Foo { bar: .5, baz: 42 };
3727 | ^^^ missing `bat`
3828
3929error[E0308]: mismatched types
40- --> $DIR/issue-52496.rs:9 :19
30+ --> $DIR/issue-52496.rs:8 :19
4131 |
4232LL | let _ = Foo { bar.into(), bat: -1, . };
4333 | ^^^ expected f64, found f32
@@ -47,12 +37,12 @@ LL | let _ = Foo { bar.into().into(), bat: -1, . };
4737 | ^^^^^^^^^^
4838
4939error[E0063]: missing field `baz` in initializer of `Foo`
50- --> $DIR/issue-52496.rs:9 :13
40+ --> $DIR/issue-52496.rs:8 :13
5141 |
5242LL | let _ = Foo { bar.into(), bat: -1, . };
5343 | ^^^ missing `baz`
5444
55- error: aborting due to 7 previous errors
45+ error: aborting due to 6 previous errors
5646
5747Some errors occurred: E0063, E0308.
5848For more information about an error, try `rustc --explain E0063`.
0 commit comments