Move to the top of file

This commit is contained in:
Katherine Philip 2021-08-31 08:28:51 -07:00
parent 8cecac2602
commit 5390ea4644

View File

@ -1,5 +1,6 @@
use core::cell::Cell; use core::cell::Cell;
use core::cmp::Ordering; use core::cmp::Ordering;
use core::mem::MaybeUninit;
use core::result::Result::{Err, Ok}; use core::result::Result::{Err, Ok};
#[test] #[test]
@ -2148,8 +2149,6 @@ fn test_slice_run_destructors() {
#[test] #[test]
fn test_slice_fill_with_uninit() { fn test_slice_fill_with_uninit() {
// This should not UB. See #87891 // This should not UB. See #87891
use core::mem::MaybeUninit;
let mut a = [MaybeUninit::<u8>::uninit(); 10]; let mut a = [MaybeUninit::<u8>::uninit(); 10];
a.fill(MaybeUninit::uninit()); a.fill(MaybeUninit::uninit());
} }