mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Add tracking issue
This commit is contained in:
parent
0f0e1c1691
commit
7b3f72906f
@ -13,7 +13,7 @@ impl bool {
|
||||
/// assert_eq!(false.then(0), None);
|
||||
/// assert_eq!(true.then(0), Some(0));
|
||||
/// ```
|
||||
#[unstable(feature = "bool_to_option", issue = "0")]
|
||||
#[unstable(feature = "bool_to_option", issue = "64260")]
|
||||
#[inline]
|
||||
pub fn then<T>(self, t: T) -> Option<T> {
|
||||
if self {
|
||||
@ -33,7 +33,7 @@ impl bool {
|
||||
/// assert_eq!(false.then_with(|| 0), None);
|
||||
/// assert_eq!(true.then_with(|| 0), Some(0));
|
||||
/// ```
|
||||
#[unstable(feature = "bool_to_option", issue = "0")]
|
||||
#[unstable(feature = "bool_to_option", issue = "64260")]
|
||||
#[inline]
|
||||
pub fn then_with<T, F: FnOnce() -> T>(self, f: F) -> Option<T> {
|
||||
if self {
|
||||
|
Loading…
Reference in New Issue
Block a user