mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 16:45:37 +00:00
2347eac4cc
For example, `1` is parsed as an integer literal, but it can be turned into a float with the suffix `f32`. Now the error calls them "numeric literals" and notes that you can add a float suffix since they can be either integers or floats.
11 lines
251 B
Plaintext
11 lines
251 B
Plaintext
error: invalid suffix `x` for number literal
|
|
--> $DIR/ice-3891.rs:2:5
|
|
|
|
|
LL | 1x;
|
|
| ^^ invalid suffix `x`
|
|
|
|
|
= help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.)
|
|
|
|
error: aborting due to previous error
|
|
|