mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
692bc344d5
Go over all structured parser suggestions and make them verbose style. When suggesting to add or remove delimiters, turn them into multiple suggestion parts.
36 lines
780 B
Plaintext
36 lines
780 B
Plaintext
error: float literals must have an integer part
|
|
--> $DIR/recover-invalid-float.rs:4:18
|
|
|
|
|
LL | let _: f32 = .3;
|
|
| ^^
|
|
|
|
|
help: must have an integer part
|
|
|
|
|
LL | let _: f32 = 0.3;
|
|
| +
|
|
|
|
error: float literals must have an integer part
|
|
--> $DIR/recover-invalid-float.rs:6:18
|
|
|
|
|
LL | let _: f32 = .42f32;
|
|
| ^^^^^^
|
|
|
|
|
help: must have an integer part
|
|
|
|
|
LL | let _: f32 = 0.42f32;
|
|
| +
|
|
|
|
error: float literals must have an integer part
|
|
--> $DIR/recover-invalid-float.rs:8:18
|
|
|
|
|
LL | let _: f64 = .5f64;
|
|
| ^^^^^
|
|
|
|
|
help: must have an integer part
|
|
|
|
|
LL | let _: f64 = 0.5f64;
|
|
| +
|
|
|
|
error: aborting due to 3 previous errors
|
|
|