0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-12-01 04:21:19 +01:00
rust/tests/mir-opt/ssa_unreachable_116212.rs
2023-10-19 15:51:52 +00:00

16 lines
230 B
Rust

// skip-filecheck
// Regression test for issue #116212.
#![feature(never_type)]
use std::mem::MaybeUninit;
struct Foo {
x: u8,
y: !,
}
fn main() {
let foo = unsafe { MaybeUninit::<Foo>::uninit().assume_init() };
}