We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
bool_to_option
1 parent 432e145 commit 14633a0Copy full SHA for 14633a0
library/core/src/bool.rs
@@ -12,7 +12,7 @@ impl bool {
12
/// assert_eq!(false.then_some(0), None);
13
/// assert_eq!(true.then_some(0), Some(0));
14
/// ```
15
- #[unstable(feature = "bool_to_option", issue = "64260")]
+ #[unstable(feature = "bool_to_option", issue = "80967")]
16
#[inline]
17
pub fn then_some<T>(self, t: T) -> Option<T> {
18
if self { Some(t) } else { None }
0 commit comments