]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: this call for this type may be undefined behavior |
2 | --> $DIR/uninit.rs:6:29 | |
3 | | | |
4 | LL | let _: usize = unsafe { MaybeUninit::uninit().assume_init() }; | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
6 | | | |
7 | = note: `#[deny(clippy::uninit_assumed_init)]` on by default | |
8 | ||
9 | error: this call for this type may be undefined behavior | |
10 | --> $DIR/uninit.rs:9:31 | |
11 | | | |
12 | LL | let _: [u8; 0] = unsafe { MaybeUninit::uninit().assume_init() }; | |
13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
14 | ||
15 | error: aborting due to 2 previous errors | |
16 |