Skip to content

Commit 5390ea4

Browse files
committed
Move to the top of file
1 parent 8cecac2 commit 5390ea4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/core/tests/slice.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use core::cell::Cell;
22
use core::cmp::Ordering;
3+
use core::mem::MaybeUninit;
34
use core::result::Result::{Err, Ok};
45

56
#[test]
@@ -2148,8 +2149,6 @@ fn test_slice_run_destructors() {
21482149
#[test]
21492150
fn test_slice_fill_with_uninit() {
21502151
// This should not UB. See #87891
2151-
use core::mem::MaybeUninit;
2152-
21532152
let mut a = [MaybeUninit::<u8>::uninit(); 10];
21542153
a.fill(MaybeUninit::uninit());
21552154
}

0 commit comments

Comments
 (0)