Add test for 116212.
This commit is contained in:
parent
dd91aba2fd
commit
255ca18454
14
tests/mir-opt/ssa_unreachable_116212.rs
Normal file
14
tests/mir-opt/ssa_unreachable_116212.rs
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
// 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() };
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user