Skip to content

Commit

Permalink
Add test for rust-lang#95.
Browse files Browse the repository at this point in the history
  • Loading branch information
solson committed Dec 22, 2016
1 parent 6d1c47b commit d6e35fe
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/run-pass/move-undef-primval.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
struct Foo {
_inner: i32,
}

fn main() {
unsafe {
let foo = Foo {
_inner: std::mem::uninitialized(),
};
let _bar = foo;
}
}

0 comments on commit d6e35fe

Please sign in to comment.