@@ -2344,31 +2344,31 @@ fn slice_rsplit_array_mut() { |
|
|
2344 |
2344 |
fn slice_split_array_ref_out_of_bounds() { |
2345 |
2345 |
let v = &[1, 2, 3, 4, 5, 6][..]; |
2346 |
2346 |
|
2347 |
|
- v.split_array_ref::<7>(); |
|
2347 |
+let _ = v.split_array_ref::<7>(); |
2348 |
2348 |
} |
2349 |
2349 |
|
2350 |
2350 |
#[should_panic] |
2351 |
2351 |
#[test] |
2352 |
2352 |
fn slice_split_array_mut_out_of_bounds() { |
2353 |
2353 |
let v = &mut [1, 2, 3, 4, 5, 6][..]; |
2354 |
2354 |
|
2355 |
|
- v.split_array_mut::<7>(); |
|
2355 |
+let _ = v.split_array_mut::<7>(); |
2356 |
2356 |
} |
2357 |
2357 |
|
2358 |
2358 |
#[should_panic] |
2359 |
2359 |
#[test] |
2360 |
2360 |
fn slice_rsplit_array_ref_out_of_bounds() { |
2361 |
2361 |
let v = &[1, 2, 3, 4, 5, 6][..]; |
2362 |
2362 |
|
2363 |
|
- v.rsplit_array_ref::<7>(); |
|
2363 |
+let _ = v.rsplit_array_ref::<7>(); |
2364 |
2364 |
} |
2365 |
2365 |
|
2366 |
2366 |
#[should_panic] |
2367 |
2367 |
#[test] |
2368 |
2368 |
fn slice_rsplit_array_mut_out_of_bounds() { |
2369 |
2369 |
let v = &mut [1, 2, 3, 4, 5, 6][..]; |
2370 |
2370 |
|
2371 |
|
- v.rsplit_array_mut::<7>(); |
|
2371 |
+let _ = v.rsplit_array_mut::<7>(); |
2372 |
2372 |
} |
2373 |
2373 |
|
2374 |
2374 |
macro_rules! take_tests { |