summaryrefslogtreecommitdiffstats
path: root/tests/ui/box/unit/unique-move-drop.rs
blob: c0f5d8f90532dfcbc6b9a383b80179d5738cb09d (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass

#![allow(unused_variables)]

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