summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unique/unique-mutable.rs
blob: 0367c08099a8326b61123ae4b6d1f151529ac765 (plain)
1
2
3
4
5
6
7
// run-pass

pub fn main() {
    let mut i: Box<_> = Box::new(0);
    *i = 1;
    assert_eq!(*i, 1);
}