|
1 | 1 | error: casting function pointer `foo` to `i8`, which truncates the value
|
2 |
| - --> $DIR/fn_to_numeric_cast_with_truncation.rs:9:13 |
3 |
| - | |
4 |
| -9 | let _ = foo as i8; |
5 |
| - | ^^^^^^^^^ help: try: `foo as usize` |
6 |
| - | |
7 |
| - = note: `-D clippy::fn-to-numeric-cast-with-truncation` implied by `-D warnings` |
| 2 | + --> $DIR/fn_to_numeric_cast_with_truncation.rs:10:13 |
| 3 | + | |
| 4 | +10 | let _ = foo as i8; |
| 5 | + | ^^^^^^^^^ help: try: `foo as usize` |
| 6 | + | |
| 7 | + = note: `-D clippy::fn-to-numeric-cast-with-truncation` implied by `-D warnings` |
8 | 8 |
|
9 | 9 | error: casting function pointer `foo` to `i16`, which truncates the value
|
10 |
| - --> $DIR/fn_to_numeric_cast_with_truncation.rs:10:13 |
| 10 | + --> $DIR/fn_to_numeric_cast_with_truncation.rs:11:13 |
11 | 11 | |
|
12 |
| -10 | let _ = foo as i16; |
| 12 | +11 | let _ = foo as i16; |
13 | 13 | | ^^^^^^^^^^ help: try: `foo as usize`
|
14 | 14 |
|
15 | 15 | error: casting function pointer `foo` to `i32`, which truncates the value
|
16 |
| - --> $DIR/fn_to_numeric_cast_with_truncation.rs:11:13 |
| 16 | + --> $DIR/fn_to_numeric_cast_with_truncation.rs:12:13 |
17 | 17 | |
|
18 |
| -11 | let _ = foo as i32; |
| 18 | +12 | let _ = foo as i32; |
19 | 19 | | ^^^^^^^^^^ help: try: `foo as usize`
|
20 | 20 |
|
21 | 21 | error: casting function pointer `foo` to `u8`, which truncates the value
|
22 |
| - --> $DIR/fn_to_numeric_cast_with_truncation.rs:12:13 |
| 22 | + --> $DIR/fn_to_numeric_cast_with_truncation.rs:13:13 |
23 | 23 | |
|
24 |
| -12 | let _ = foo as u8; |
| 24 | +13 | let _ = foo as u8; |
25 | 25 | | ^^^^^^^^^ help: try: `foo as usize`
|
26 | 26 |
|
27 | 27 | error: casting function pointer `foo` to `u16`, which truncates the value
|
28 |
| - --> $DIR/fn_to_numeric_cast_with_truncation.rs:13:13 |
| 28 | + --> $DIR/fn_to_numeric_cast_with_truncation.rs:14:13 |
29 | 29 | |
|
30 |
| -13 | let _ = foo as u16; |
| 30 | +14 | let _ = foo as u16; |
31 | 31 | | ^^^^^^^^^^ help: try: `foo as usize`
|
32 | 32 |
|
33 | 33 | error: casting function pointer `foo` to `u32`, which truncates the value
|
34 |
| - --> $DIR/fn_to_numeric_cast_with_truncation.rs:14:13 |
| 34 | + --> $DIR/fn_to_numeric_cast_with_truncation.rs:15:13 |
35 | 35 | |
|
36 |
| -14 | let _ = foo as u32; |
| 36 | +15 | let _ = foo as u32; |
37 | 37 | | ^^^^^^^^^^ help: try: `foo as usize`
|
38 | 38 |
|
39 | 39 | error: aborting due to 6 previous errors
|
|
0 commit comments