]> git.lizzy.rs Git - rust.git/commitdiff
Add a commented-out RefCell test.
authorScott Olson <scott@solson.me>
Tue, 22 Mar 2016 00:53:39 +0000 (18:53 -0600)
committerScott Olson <scott@solson.me>
Tue, 22 Mar 2016 00:53:39 +0000 (18:53 -0600)
test/std.rs

index fec5845858581b53d0b27e98afe7bcf1398c6899..17511a193718e844a184acae9f9514dc55d2fe42 100644 (file)
@@ -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;