rust/tests/ui/unused-move.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
232 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)]
2013-08-17 15:37:42 +00:00
pub fn main() {
let y: Box<_> = Box::new(1);
2013-02-15 10:44:18 +00:00
y;
}