about summary refs log tree commit diff
path: root/tests/ui/box/unit/unique-move-drop.rs
blob: 1dff5f0bc87a91afd064946697df50d0027c87fd (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);
}