mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Add a tracking issue for Option::copied
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user