rust/tests/ui/unique/unique-assign.rs

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

9 lines
120 B
Rust
Raw Normal View History

// run-pass
#![allow(unused_mut)]
pub fn main() {
let mut i: Box<_>;
i = Box::new(1);
assert_eq!(*i, 1);
}