diff options
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/rc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index 416a6ad2d8b..db6af30bce7 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -320,8 +320,8 @@ mod tests { #[test] fn gc_inside() { // see issue #11532 - use std::gc::Gc; - let a = Rc::new(RefCell::new(Gc::new(1))); + use std::gc::GC; + let a = Rc::new(RefCell::new(box(GC) 1)); assert!(a.try_borrow_mut().is_some()); } |
