@@ -46,10 +46,8 @@ fn main() {
46
46
//~^ ERROR mismatched types
47
47
foo :: < usize > ( x_f64) ;
48
48
//~^ ERROR mismatched types
49
- //~| WARN casting here will cause Undefined Behavior
50
49
foo :: < usize > ( x_f32) ;
51
50
//~^ ERROR mismatched types
52
- //~| WARN casting here will cause Undefined Behavior
53
51
54
52
foo :: < isize > ( x_usize) ;
55
53
//~^ ERROR mismatched types
@@ -72,10 +70,8 @@ fn main() {
72
70
//~^ ERROR mismatched types
73
71
foo :: < isize > ( x_f64) ;
74
72
//~^ ERROR mismatched types
75
- //~| WARN casting here will cause Undefined Behavior
76
73
foo :: < isize > ( x_f32) ;
77
74
//~^ ERROR mismatched types
78
- //~| WARN casting here will cause Undefined Behavior
79
75
80
76
foo :: < u64 > ( x_usize) ;
81
77
//~^ ERROR mismatched types
@@ -98,10 +94,8 @@ fn main() {
98
94
//~^ ERROR mismatched types
99
95
foo :: < u64 > ( x_f64) ;
100
96
//~^ ERROR mismatched types
101
- //~| WARN casting here will cause Undefined Behavior
102
97
foo :: < u64 > ( x_f32) ;
103
98
//~^ ERROR mismatched types
104
- //~| WARN casting here will cause Undefined Behavior
105
99
106
100
foo :: < i64 > ( x_usize) ;
107
101
//~^ ERROR mismatched types
@@ -124,10 +118,8 @@ fn main() {
124
118
//~^ ERROR mismatched types
125
119
foo :: < i64 > ( x_f64) ;
126
120
//~^ ERROR mismatched types
127
- //~| WARN casting here will cause Undefined Behavior
128
121
foo :: < i64 > ( x_f32) ;
129
122
//~^ ERROR mismatched types
130
- //~| WARN casting here will cause Undefined Behavior
131
123
132
124
foo :: < u32 > ( x_usize) ;
133
125
//~^ ERROR mismatched types
@@ -150,10 +142,8 @@ fn main() {
150
142
//~^ ERROR mismatched types
151
143
foo :: < u32 > ( x_f64) ;
152
144
//~^ ERROR mismatched types
153
- //~| WARN casting here will cause Undefined Behavior
154
145
foo :: < u32 > ( x_f32) ;
155
146
//~^ ERROR mismatched types
156
- //~| WARN casting here will cause Undefined Behavior
157
147
158
148
foo :: < i32 > ( x_usize) ;
159
149
//~^ ERROR mismatched types
@@ -176,10 +166,8 @@ fn main() {
176
166
//~^ ERROR mismatched types
177
167
foo :: < i32 > ( x_f64) ;
178
168
//~^ ERROR mismatched types
179
- //~| WARN casting here will cause Undefined Behavior
180
169
foo :: < i32 > ( x_f32) ;
181
170
//~^ ERROR mismatched types
182
- //~| WARN casting here will cause Undefined Behavior
183
171
184
172
foo :: < u16 > ( x_usize) ;
185
173
//~^ ERROR mismatched types
@@ -202,10 +190,8 @@ fn main() {
202
190
//~^ ERROR mismatched types
203
191
foo :: < u16 > ( x_f64) ;
204
192
//~^ ERROR mismatched types
205
- //~| WARN casting here will cause Undefined Behavior
206
193
foo :: < u16 > ( x_f32) ;
207
194
//~^ ERROR mismatched types
208
- //~| WARN casting here will cause Undefined Behavior
209
195
210
196
foo :: < i16 > ( x_usize) ;
211
197
//~^ ERROR mismatched types
@@ -228,10 +214,8 @@ fn main() {
228
214
//~^ ERROR mismatched types
229
215
foo :: < i16 > ( x_f64) ;
230
216
//~^ ERROR mismatched types
231
- //~| WARN casting here will cause Undefined Behavior
232
217
foo :: < i16 > ( x_f32) ;
233
218
//~^ ERROR mismatched types
234
- //~| WARN casting here will cause Undefined Behavior
235
219
236
220
foo :: < u8 > ( x_usize) ;
237
221
//~^ ERROR mismatched types
@@ -254,10 +238,8 @@ fn main() {
254
238
//~^ ERROR mismatched types
255
239
foo :: < u8 > ( x_f64) ;
256
240
//~^ ERROR mismatched types
257
- //~| WARN casting here will cause Undefined Behavior
258
241
foo :: < u8 > ( x_f32) ;
259
242
//~^ ERROR mismatched types
260
- //~| WARN casting here will cause Undefined Behavior
261
243
262
244
foo :: < i8 > ( x_usize) ;
263
245
//~^ ERROR mismatched types
@@ -280,10 +262,8 @@ fn main() {
280
262
foo :: < i8 > ( x_i8) ;
281
263
foo :: < i8 > ( x_f64) ;
282
264
//~^ ERROR mismatched types
283
- //~| WARN casting here will cause Undefined Behavior
284
265
foo :: < i8 > ( x_f32) ;
285
266
//~^ ERROR mismatched types
286
- //~| WARN casting here will cause Undefined Behavior
287
267
288
268
foo :: < f64 > ( x_usize) ;
289
269
//~^ ERROR mismatched types
@@ -331,6 +311,5 @@ fn main() {
331
311
//~^ ERROR mismatched types
332
312
foo :: < f32 > ( x_f64) ;
333
313
//~^ ERROR mismatched types
334
- //~| WARN casting here will cause undefined behavior
335
314
foo :: < f32 > ( x_f32) ;
336
315
}
0 commit comments