mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Add test for 116212.
This commit is contained in:
@@ -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() };
|
||||
}
|
||||
Reference in New Issue
Block a user