rust/tests/ui/unique/unique-assign.rs
2023-01-11 09:32:08 +00:00

9 lines
120 B
Rust

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