rust/src/test/ui/unused-move.rs

16 lines
250 B
Rust
Raw Normal View History

// run-pass
2012-10-30 22:05:34 +00:00
// Issue #3878
// Issue Name: Unused move causes a crash
// Abstract: zero-fill to block after drop
// pretty-expanded FIXME #23616
#![allow(path_statements)]
#![feature(box_syntax)]
2013-08-17 15:37:42 +00:00
pub fn main()
2012-10-30 22:05:34 +00:00
{
let y: Box<_> = box 1;
2013-02-15 10:44:18 +00:00
y;
}