]> git.lizzy.rs Git - rust.git/blob - tests/ui/uninit.stderr
Ignore associated items in trait *implementations* when considering type complexity
[rust.git] / tests / ui / uninit.stderr
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: this call for this type may be undefined behavior
16   --> $DIR/uninit.rs:24:29
17    |
18 LL |     let _: usize = unsafe { mem::MaybeUninit::uninit().assume_init() };
19    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
21 error: aborting due to 3 previous errors
22