diff options
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/rc.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index 5b3d7c9ea90..f57286bbf11 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -143,8 +143,10 @@ //! ``` #![stable(feature = "rust1", since = "1.0.0")] - +#[cfg(not(test))] use boxed; +#[cfg(test)] +use std::boxed; use core::cell::Cell; use core::clone::Clone; use core::cmp::{PartialEq, PartialOrd, Eq, Ord, Ordering}; |
