1 error: casting integer literal to `i32` is unnecessary
2 --> $DIR/unnecessary_cast.rs:6:5
5 | ^^^^^^^^^^^ help: try: `1_i32`
7 = note: `-D clippy::unnecessary-cast` implied by `-D warnings`
9 error: casting float literal to `f32` is unnecessary
10 --> $DIR/unnecessary_cast.rs:7:5
13 | ^^^^^^^^^^^ help: try: `1_f32`
15 error: casting to the same type is unnecessary (`bool` -> `bool`)
16 --> $DIR/unnecessary_cast.rs:8:5
19 | ^^^^^^^^^^^^^ help: try: `false`
21 error: aborting due to 3 previous errors