mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 09:53:26 +00:00
15 lines
212 B
Rust
15 lines
212 B
Rust
![]() |
// 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() };
|
||
|
}
|