@@ -17,6 +17,7 @@ use crate::sys::sync as sys;
1717/// # Example
1818///
1919/// ```
20+ /// #![feature(nonpoison_mutex)]
2021/// use std::sync::{Arc, nonpoison::Mutex};
2122/// use std::thread;
2223/// use std::sync::mpsc::channel;
@@ -135,6 +136,7 @@ impl<T> Mutex<T> {
135136 /// # Examples
136137 ///
137138 /// ```
139+ /// #![feature(nonpoison_mutex)]
138140 /// use std::sync::nonpoison::Mutex;
139141 ///
140142 /// let mutex = Mutex::new(0);
@@ -166,6 +168,7 @@ impl<T: ?Sized> Mutex<T> {
166168 /// # Examples
167169 ///
168170 /// ```
171+ /// #![feature(nonpoison_mutex)]
169172 /// use std::sync::{Arc, nonpoison::Mutex};
170173 /// use std::thread;
171174 ///
@@ -201,6 +204,7 @@ impl<T: ?Sized> Mutex<T> {
201204 /// # Examples
202205 ///
203206 /// ```
207+ /// #![feature(nonpoison_mutex)]
204208 /// use std::sync::{Arc, nonpoison::Mutex};
205209 /// use std::thread;
206210 ///
@@ -227,6 +231,7 @@ impl<T: ?Sized> Mutex<T> {
227231 /// # Examples
228232 ///
229233 /// ```
234+ /// #![feature(nonpoison_mutex)]
230235 /// use std::sync::nonpoison::Mutex;
231236 ///
232237 /// let mutex = Mutex::new(0);
@@ -249,6 +254,7 @@ impl<T: ?Sized> Mutex<T> {
249254 /// # Examples
250255 ///
251256 /// ```
257+ /// #![feature(nonpoison_mutex)]
252258 /// use std::sync::nonpoison::Mutex;
253259 ///
254260 /// let mut mutex = Mutex::new(0);
0 commit comments