Skip to content

Commit 255ca18

Browse files
committed
Add test for 116212.
1 parent dd91aba commit 255ca18

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Regression test for issue #116212.
2+
3+
#![feature(never_type)]
4+
5+
use std::mem::MaybeUninit;
6+
7+
struct Foo {
8+
x: u8,
9+
y: !,
10+
}
11+
12+
fn main() {
13+
let foo = unsafe { MaybeUninit::<Foo>::uninit().assume_init() };
14+
}

0 commit comments

Comments
 (0)