We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 804cd84 commit ca26decCopy full SHA for ca26dec
library/core/src/bool.rs
@@ -58,6 +58,7 @@ impl bool {
58
///
59
/// // `a` is incremented once because the closure is evaluated lazily by
60
/// // `then`.
61
+ /// assert_eq!(a, 1);
62
/// ```
63
#[stable(feature = "lazy_bool_to_option", since = "1.50.0")]
64
#[rustc_const_unstable(feature = "const_bool_to_option", issue = "91917")]
0 commit comments