fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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 | | help: try naming a field: `bar:` 14 | while parsing this struct 15 16error: expected identifier, found `.` 17 --> $DIR/issue-52496.rs:8:40 18 | 19LL | let _ = Foo { bar.into(), bat: -1, . }; 20 | --- ^ expected identifier 21 | | 22 | while parsing this struct 23 24error[E0063]: missing field `bat` in initializer of `Foo` 25 --> $DIR/issue-52496.rs:4:13 26 | 27LL | let _ = Foo { bar: .5, baz: 42 }; 28 | ^^^ missing `bat` 29 30error[E0063]: missing fields `bar` and `baz` in initializer of `Foo` 31 --> $DIR/issue-52496.rs:8:13 32 | 33LL | let _ = Foo { bar.into(), bat: -1, . }; 34 | ^^^ missing `bar` and `baz` 35 36error: aborting due to 5 previous errors 37 38For more information about this error, try `rustc --explain E0063`.