summary refs log tree commit diff
path: root/src/test/ui/unique/unique-move.rs
blob: 0f6bff1432b3fd39d0c6a64eeeb250830dadeda1 (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass
#![allow(unused_mut)]
#![feature(box_syntax)]

pub fn main() {
    let i: Box<_> = box 100;
    let mut j;
    j = i;
    assert_eq!(*j, 100);
}