diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index c0f7183b06c..e4a52d9c4a4 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -262,6 +262,8 @@ impl Cell { /// # Examples /// /// ``` + /// #![feature(cell_update)] + /// /// use std::cell::Cell; /// /// let c = Cell::new(5); diff --git a/src/libcore/tests/lib.rs b/src/libcore/tests/lib.rs index de7211e718c..13c53f47b69 100644 --- a/src/libcore/tests/lib.rs +++ b/src/libcore/tests/lib.rs @@ -12,6 +12,7 @@ #![feature(ascii_ctype)] #![feature(box_syntax)] +#![feature(cell_update)] #![feature(core_float)] #![feature(core_private_bignum)] #![feature(core_private_diy_float)]