mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 13:40:15 +03:00
11 lines
188 B
Rust
11 lines
188 B
Rust
#![allow(invalid_value)]
|
|
|
|
union MyUninit {
|
|
init: (),
|
|
uninit: fn(),
|
|
}
|
|
|
|
fn main() {
|
|
let _b = unsafe { MyUninit { init: () }.uninit }; //~ ERROR encountered uninitialized bytes
|
|
}
|