mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
11 lines
272 B
Rust
11 lines
272 B
Rust
//@ run-rustfix
|
|
|
|
fn main() {
|
|
let _: f32 = 0.3;
|
|
//~^ ERROR float literals must have an integer part
|
|
let _: f32 = 0.42f32;
|
|
//~^ ERROR float literals must have an integer part
|
|
let _: f64 = 0.5f64;
|
|
//~^ ERROR float literals must have an integer part
|
|
}
|