Fix Option<&mut T>::cloned doc test
This commit is contained in:
parent
51b29d618a
commit
5383205555
1 changed files with 1 additions and 0 deletions
|
|
@ -781,6 +781,7 @@ impl<'a, T: Clone> Option<&'a mut T> {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(option_ref_mut_cloned)]
|
||||
/// let mut x = 12;
|
||||
/// let opt_x = Some(&mut x);
|
||||
/// assert_eq!(opt_x, Some(&mut 12));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue