From: Scott Olson Date: Tue, 22 Mar 2016 00:53:39 +0000 (-0600) Subject: Add a commented-out RefCell test. X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=f6b1282eee33e2967775b8139614de361bf3c6f2;p=rust.git Add a commented-out RefCell test. --- diff --git a/test/std.rs b/test/std.rs index fec58458585..17511a19371 100644 --- a/test/std.rs +++ b/test/std.rs @@ -11,6 +11,17 @@ fn rc_cell() -> i32 { r.get() } +// TODO(tsion): borrow code needs to evaluate string statics via Lvalue::Static +// #[miri_run] +// fn rc_refcell() -> i32 { +// use std::rc::Rc; +// use std::cell::RefCell; +// let r = Rc::new(RefCell::new(42)); +// *r.borrow_mut() += 10; +// let x = *r.borrow(); +// x +// } + #[miri_run] fn arc() -> i32 { use std::sync::Arc;