Skip to content

Commit

Permalink
Move to the top of file
Browse files Browse the repository at this point in the history
  • Loading branch information
atsuzaki committed Aug 31, 2021
1 parent 8cecac2 commit 5390ea4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/core/tests/slice.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use core::cell::Cell;
use core::cmp::Ordering;
use core::mem::MaybeUninit;
use core::result::Result::{Err, Ok};

#[test]
Expand Down Expand Up @@ -2148,8 +2149,6 @@ fn test_slice_run_destructors() {
#[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());
}

0 comments on commit 5390ea4

Please # to comment.