diff options
| author | bors <bors@rust-lang.org> | 2013-04-22 10:15:50 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-04-22 10:15:50 -0700 |
| commit | aee2567eca278c0632de09138977aa13ad0f46fd (patch) | |
| tree | 79bca5400a8bd628054813ae4c9929cbb2f2ce48 /src/rt/rust_run_program.cpp | |
| parent | d0451eebc41d4eaddcc299c868b5ad983e8c8eb9 (diff) | |
| parent | c99409b332a2bee95e1139c6786c99a06cca9d3b (diff) | |
| download | rust-aee2567eca278c0632de09138977aa13ad0f46fd.tar.gz rust-aee2567eca278c0632de09138977aa13ad0f46fd.zip | |
auto merge of #6003 : thestinger/rust/cell, r=nikomatsakis
```rust
use core::cell;
fn main() {
let x = cell::Cell(Some(~"foo"));
let y = x.value.get_ref().get_ref();
do x.with_mut_ref |z| { *z = None; }
println(*y) // boom!
}
```
Diffstat (limited to 'src/rt/rust_run_program.cpp')
0 files changed, 0 insertions, 0 deletions
