rust/src/test/ui/issues/issue-3290.rs

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

10 lines
138 B
Rust
Raw Normal View History

// run-pass
#![feature(box_syntax)]
#![allow(dead_code)]
pub fn main() {
let mut x: Box<_> = box 3;
2013-05-21 20:12:31 +00:00
x = x;
assert_eq!(*x, 3);
}