Add a tracking issue for Option::copied

This commit is contained in:
Konrad Borowski
2018-12-26 10:13:02 +01:00
parent 8ac5380ea0
commit 2fcdc9c15d
+2 -2
View File
@@ -899,7 +899,7 @@ impl<'a, T: Copy> Option<&'a T> {
/// let copied = opt_x.copied();
/// assert_eq!(copied, Some(12));
/// ```
#[unstable(feature = "copied", issue = "0")]
#[unstable(feature = "copied", issue = "57126")]
pub fn copied(self) -> Option<T> {
self.map(|&t| t)
}
@@ -920,7 +920,7 @@ impl<'a, T: Copy> Option<&'a mut T> {
/// let copied = opt_x.copied();
/// assert_eq!(copied, Some(12));
/// ```
#[unstable(feature = "copied", issue = "0")]
#[unstable(feature = "copied", issue = "57126")]
pub fn copied(self) -> Option<T> {
self.map(|&mut t| t)
}