mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
Add test for #95.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
struct Foo {
|
||||
_inner: i32,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
unsafe {
|
||||
let foo = Foo {
|
||||
_inner: std::mem::uninitialized(),
|
||||
};
|
||||
let _bar = foo;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user