1 error: casting integer literal to `i32` is unnecessary
2 --> $DIR/unnecessary_cast.rs:8: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:9:5
13 | ^^^^^^^^^^^ help: try: `1_f32`
15 error: casting to the same type is unnecessary (`bool` -> `bool`)
16 --> $DIR/unnecessary_cast.rs:10:5
19 | ^^^^^^^^^^^^^ help: try: `false`
21 error: casting integer literal to `i32` is unnecessary
22 --> $DIR/unnecessary_cast.rs:13:5
25 | ^^^^^^^^^^^^^ help: try: `-1_i32`
27 error: casting integer literal to `i32` is unnecessary
28 --> $DIR/unnecessary_cast.rs:14:5
31 | ^^^^^^^^^^^^^^ help: try: `- 1_i32`
33 error: casting float literal to `f32` is unnecessary
34 --> $DIR/unnecessary_cast.rs:15:5
37 | ^^^^^^^^^^^^ help: try: `-1_f32`
39 error: casting integer literal to `i32` is unnecessary
40 --> $DIR/unnecessary_cast.rs:16:5
43 | ^^^^^^^^^^^^ help: try: `1_i32`
45 error: casting float literal to `f32` is unnecessary
46 --> $DIR/unnecessary_cast.rs:17:5
49 | ^^^^^^^^^^^^ help: try: `1_f32`
51 error: aborting due to 8 previous errors