mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 23:24:24 +00:00
20 lines
413 B
Rust
20 lines
413 B
Rust
// run-rustfix
|
|
|
|
#![warn(clippy::unseparated_literal_suffix)]
|
|
#![allow(dead_code)]
|
|
|
|
fn main() {
|
|
let _ok1 = 1234_i32;
|
|
let _ok2 = 1234_isize;
|
|
let _ok3 = 0x123_isize;
|
|
let _fail1 = 1234i32;
|
|
let _fail2 = 1234u32;
|
|
let _fail3 = 1234isize;
|
|
let _fail4 = 1234usize;
|
|
let _fail5 = 0x123isize;
|
|
|
|
let _okf1 = 1.5_f32;
|
|
let _okf2 = 1_f32;
|
|
let _failf1 = 1.5f32;
|
|
let _failf2 = 1f32;
|
|
}
|