summary refs log tree commit diff
path: root/src/test/ui/deref-lval.rs
blob: f57872f80e02504789e94b1deda3f70eea44902b (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass

#![feature(box_syntax)]

use std::cell::Cell;

pub fn main() {
    let x: Box<_> = box Cell::new(5);
    x.set(1000);
    println!("{}", x.get());
}