We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cecac2 commit 5390ea4Copy full SHA for 5390ea4
1 file changed
library/core/tests/slice.rs
@@ -1,5 +1,6 @@
1
use core::cell::Cell;
2
use core::cmp::Ordering;
3
+use core::mem::MaybeUninit;
4
use core::result::Result::{Err, Ok};
5
6
#[test]
@@ -2148,8 +2149,6 @@ fn test_slice_run_destructors() {
2148
2149
2150
fn test_slice_fill_with_uninit() {
2151
// This should not UB. See #87891
- use core::mem::MaybeUninit;
2152
-
2153
let mut a = [MaybeUninit::<u8>::uninit(); 10];
2154
a.fill(MaybeUninit::uninit());
2155
}
0 commit comments