2020-01-06 06:36:33 +00:00
|
|
|
error: casting integer literal to `f32` is unnecessary
|
2019-08-04 06:24:23 +00:00
|
|
|
--> $DIR/unnecessary_cast_fixable.rs:8:5
|
|
|
|
|
|
|
|
|
LL | 100 as f32;
|
|
|
|
| ^^^^^^^^^^ help: try: `100_f32`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::unnecessary-cast` implied by `-D warnings`
|
|
|
|
|
2020-01-06 06:36:33 +00:00
|
|
|
error: casting integer literal to `f64` is unnecessary
|
2019-08-04 06:24:23 +00:00
|
|
|
--> $DIR/unnecessary_cast_fixable.rs:9:5
|
|
|
|
|
|
|
|
|
LL | 100 as f64;
|
|
|
|
| ^^^^^^^^^^ help: try: `100_f64`
|
|
|
|
|
2020-01-06 06:36:33 +00:00
|
|
|
error: casting integer literal to `f64` is unnecessary
|
2019-08-04 06:24:23 +00:00
|
|
|
--> $DIR/unnecessary_cast_fixable.rs:10:5
|
|
|
|
|
|
|
|
|
LL | 100_i32 as f64;
|
|
|
|
| ^^^^^^^^^^^^^^ help: try: `100_f64`
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|