Skip to content

Commit 5383205

Browse files
committed
Fix Option<&mut T>::cloned doc test
1 parent 51b29d6 commit 5383205

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/option.rs

+1
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,7 @@ impl<'a, T: Clone> Option<&'a mut T> {
781781
/// # Examples
782782
///
783783
/// ```
784+
/// #![feature(option_ref_mut_cloned)]
784785
/// let mut x = 12;
785786
/// let opt_x = Some(&mut x);
786787
/// assert_eq!(opt_x, Some(&mut 12));

0 commit comments

Comments
 (0)