Fix Option<&mut T>::cloned doc test

This commit is contained in:
panicbit 2017-08-07 12:54:40 +02:00
parent 51b29d618a
commit 5383205555

View File

@ -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));