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.
9 lines
225 B
Rust
9 lines
225 B
Rust
fn main() {
|
|
0b101010f64;
|
|
//~^ ERROR binary float literal is not supported
|
|
0b101.010;
|
|
//~^ ERROR binary float literal is not supported
|
|
0b101p4f64;
|
|
//~^ ERROR invalid suffix `p4f64` for number literal
|
|
}
|