@@ -17,6 +17,7 @@ use crate::sys::sync as sys;
17
17
/// # Example
18
18
///
19
19
/// ```
20
+ /// #![feature(nonpoison_mutex)]
20
21
/// use std::sync::{Arc, nonpoison::Mutex};
21
22
/// use std::thread;
22
23
/// use std::sync::mpsc::channel;
@@ -135,6 +136,7 @@ impl<T> Mutex<T> {
135
136
/// # Examples
136
137
///
137
138
/// ```
139
+ /// #![feature(nonpoison_mutex)]
138
140
/// use std::sync::nonpoison::Mutex;
139
141
///
140
142
/// let mutex = Mutex::new(0);
@@ -166,6 +168,7 @@ impl<T: ?Sized> Mutex<T> {
166
168
/// # Examples
167
169
///
168
170
/// ```
171
+ /// #![feature(nonpoison_mutex)]
169
172
/// use std::sync::{Arc, nonpoison::Mutex};
170
173
/// use std::thread;
171
174
///
@@ -201,6 +204,7 @@ impl<T: ?Sized> Mutex<T> {
201
204
/// # Examples
202
205
///
203
206
/// ```
207
+ /// #![feature(nonpoison_mutex)]
204
208
/// use std::sync::{Arc, nonpoison::Mutex};
205
209
/// use std::thread;
206
210
///
@@ -227,6 +231,7 @@ impl<T: ?Sized> Mutex<T> {
227
231
/// # Examples
228
232
///
229
233
/// ```
234
+ /// #![feature(nonpoison_mutex)]
230
235
/// use std::sync::nonpoison::Mutex;
231
236
///
232
237
/// let mutex = Mutex::new(0);
@@ -249,6 +254,7 @@ impl<T: ?Sized> Mutex<T> {
249
254
/// # Examples
250
255
///
251
256
/// ```
257
+ /// #![feature(nonpoison_mutex)]
252
258
/// use std::sync::nonpoison::Mutex;
253
259
///
254
260
/// let mut mutex = Mutex::new(0);
0 commit comments