summary refs log tree commit diff
path: root/src/test/ui/unique/unique-move-drop.rs
blob: e1ea58b39ef50007984e14308154c58f3b527fb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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);
}