@@ -69,75 +69,75 @@ error: casting function pointer `foo` to `u128`
69
69
| ^^^^^^^^^^^ help: try: `foo as usize`
70
70
71
71
error: casting function pointer `abc` to `i8`, which truncates the value
72
- --> $DIR/fn_to_numeric_cast.rs:39 :13
72
+ --> $DIR/fn_to_numeric_cast.rs:43 :13
73
73
|
74
- 39 | let _ = abc as i8;
74
+ 43 | let _ = abc as i8;
75
75
| ^^^^^^^^^ help: try: `abc as usize`
76
76
77
77
error: casting function pointer `abc` to `i16`, which truncates the value
78
- --> $DIR/fn_to_numeric_cast.rs:40 :13
78
+ --> $DIR/fn_to_numeric_cast.rs:44 :13
79
79
|
80
- 40 | let _ = abc as i16;
80
+ 44 | let _ = abc as i16;
81
81
| ^^^^^^^^^^ help: try: `abc as usize`
82
82
83
83
error: casting function pointer `abc` to `i32`, which truncates the value
84
- --> $DIR/fn_to_numeric_cast.rs:41 :13
84
+ --> $DIR/fn_to_numeric_cast.rs:45 :13
85
85
|
86
- 41 | let _ = abc as i32;
86
+ 45 | let _ = abc as i32;
87
87
| ^^^^^^^^^^ help: try: `abc as usize`
88
88
89
89
error: casting function pointer `abc` to `i64`
90
- --> $DIR/fn_to_numeric_cast.rs:42 :13
90
+ --> $DIR/fn_to_numeric_cast.rs:46 :13
91
91
|
92
- 42 | let _ = abc as i64;
92
+ 46 | let _ = abc as i64;
93
93
| ^^^^^^^^^^ help: try: `abc as usize`
94
94
95
95
error: casting function pointer `abc` to `i128`
96
- --> $DIR/fn_to_numeric_cast.rs:43 :13
96
+ --> $DIR/fn_to_numeric_cast.rs:47 :13
97
97
|
98
- 43 | let _ = abc as i128;
98
+ 47 | let _ = abc as i128;
99
99
| ^^^^^^^^^^^ help: try: `abc as usize`
100
100
101
101
error: casting function pointer `abc` to `isize`
102
- --> $DIR/fn_to_numeric_cast.rs:44 :13
102
+ --> $DIR/fn_to_numeric_cast.rs:48 :13
103
103
|
104
- 44 | let _ = abc as isize;
104
+ 48 | let _ = abc as isize;
105
105
| ^^^^^^^^^^^^ help: try: `abc as usize`
106
106
107
107
error: casting function pointer `abc` to `u8`, which truncates the value
108
- --> $DIR/fn_to_numeric_cast.rs:46 :13
108
+ --> $DIR/fn_to_numeric_cast.rs:50 :13
109
109
|
110
- 46 | let _ = abc as u8;
110
+ 50 | let _ = abc as u8;
111
111
| ^^^^^^^^^ help: try: `abc as usize`
112
112
113
113
error: casting function pointer `abc` to `u16`, which truncates the value
114
- --> $DIR/fn_to_numeric_cast.rs:47 :13
114
+ --> $DIR/fn_to_numeric_cast.rs:51 :13
115
115
|
116
- 47 | let _ = abc as u16;
116
+ 51 | let _ = abc as u16;
117
117
| ^^^^^^^^^^ help: try: `abc as usize`
118
118
119
119
error: casting function pointer `abc` to `u32`, which truncates the value
120
- --> $DIR/fn_to_numeric_cast.rs:48 :13
120
+ --> $DIR/fn_to_numeric_cast.rs:52 :13
121
121
|
122
- 48 | let _ = abc as u32;
122
+ 52 | let _ = abc as u32;
123
123
| ^^^^^^^^^^ help: try: `abc as usize`
124
124
125
125
error: casting function pointer `abc` to `u64`
126
- --> $DIR/fn_to_numeric_cast.rs:49 :13
126
+ --> $DIR/fn_to_numeric_cast.rs:53 :13
127
127
|
128
- 49 | let _ = abc as u64;
128
+ 53 | let _ = abc as u64;
129
129
| ^^^^^^^^^^ help: try: `abc as usize`
130
130
131
131
error: casting function pointer `abc` to `u128`
132
- --> $DIR/fn_to_numeric_cast.rs:50 :13
132
+ --> $DIR/fn_to_numeric_cast.rs:54 :13
133
133
|
134
- 50 | let _ = abc as u128;
134
+ 54 | let _ = abc as u128;
135
135
| ^^^^^^^^^^^ help: try: `abc as usize`
136
136
137
137
error: casting function pointer `f` to `i32`, which truncates the value
138
- --> $DIR/fn_to_numeric_cast.rs:57 :5
138
+ --> $DIR/fn_to_numeric_cast.rs:61 :5
139
139
|
140
- 57 | f as i32
140
+ 61 | f as i32
141
141
| ^^^^^^^^ help: try: `f as usize`
142
142
143
143
error: aborting due to 23 previous errors
0 commit comments