testcase added for #3878
This commit is contained in:
parent
bf792b922c
commit
1dc4d024a8
1 changed files with 9 additions and 0 deletions
9
src/test/run-pass/unused-move.rs
Normal file
9
src/test/run-pass/unused-move.rs
Normal file
|
@ -0,0 +1,9 @@
|
|||
// Issue #3878
|
||||
// Issue Name: Unused move causes a crash
|
||||
// Abstract: zero-fill to block after drop
|
||||
|
||||
fn main()
|
||||
{
|
||||
let y = ~1;
|
||||
move y;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue