Move to the top of file
This commit is contained in:
parent
8cecac2602
commit
5390ea4644
@ -1,5 +1,6 @@
|
||||
use core::cell::Cell;
|
||||
use core::cmp::Ordering;
|
||||
use core::mem::MaybeUninit;
|
||||
use core::result::Result::{Err, Ok};
|
||||
|
||||
#[test]
|
||||
@ -2148,8 +2149,6 @@ fn foo(x: &Cell<isize>) -> Foo<'_> {
|
||||
#[test]
|
||||
fn test_slice_fill_with_uninit() {
|
||||
// This should not UB. See #87891
|
||||
use core::mem::MaybeUninit;
|
||||
|
||||
let mut a = [MaybeUninit::<u8>::uninit(); 10];
|
||||
a.fill(MaybeUninit::uninit());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user