Skip to content

Commit 1dc4d02

Browse files
committed
testcase added for rust-lang#3878
1 parent bf792b9 commit 1dc4d02

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/test/run-pass/unused-move.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Issue #3878
2+
// Issue Name: Unused move causes a crash
3+
// Abstract: zero-fill to block after drop
4+
5+
fn main()
6+
{
7+
let y = ~1;
8+
move y;
9+
}

0 commit comments

Comments
 (0)