rust/src/test/ui/unique/unique-move-drop.rs
2019-07-27 18:56:16 +03:00

11 lines
182 B
Rust

// run-pass
#![allow(unused_variables)]
#![feature(box_syntax)]
pub fn main() {
let i: Box<_> = box 100;
let j: Box<_> = box 200;
let j = i;
assert_eq!(*j, 100);
}