]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/uninit.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / uninit.stderr
CommitLineData
f20569fa
XL
1error: this call for this type may be undefined behavior
2 --> $DIR/uninit.rs:6:29
3 |
4LL | let _: usize = unsafe { MaybeUninit::uninit().assume_init() };
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `#[deny(clippy::uninit_assumed_init)]` on by default
8
9error: this call for this type may be undefined behavior
10 --> $DIR/uninit.rs:9:31
11 |
12LL | let _: [u8; 0] = unsafe { MaybeUninit::uninit().assume_init() };
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15error: aborting due to 2 previous errors
16