| error: this call for this type may be undefined behavior |
| --> tests/ui/uninit_assumed_init.rs:13:29 |
| | |
| LL | let _: usize = unsafe { MaybeUninit::uninit().assume_init() }; |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| = note: `-D clippy::uninit-assumed-init` implied by `-D warnings` |
| = help: to override `-D warnings` add `#[allow(clippy::uninit_assumed_init)]` |
| |
| error: this call for this type may be undefined behavior |
| --> tests/ui/uninit_assumed_init.rs:35:29 |
| | |
| LL | let _: usize = unsafe { MaybeUninit::uninit().assume_init() }; |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error: this call for this type may be undefined behavior |
| --> tests/ui/uninit_assumed_init.rs:44:29 |
| | |
| LL | let _: T = unsafe { MaybeUninit::uninit().assume_init() }; |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error: aborting due to 3 previous errors |
| |