]> git.lizzy.rs Git - rust.git/blob - src/test/ui/deref-lval.rs
Rollup merge of #70649 - GuillaumeGomez:cleanup-e0468, r=Dylan-DPC
[rust.git] / src / test / ui / deref-lval.rs
1 // run-pass
2
3 #![feature(box_syntax)]
4
5 use std::cell::Cell;
6
7 pub fn main() {
8     let x: Box<_> = box Cell::new(5);
9     x.set(1000);
10     println!("{}", x.get());
11 }