Add missing assertion
This commit is contained in:
committed by
GitHub
parent
804cd8499b
commit
ca26dec15f
@@ -58,6 +58,7 @@ impl bool {
|
|||||||
///
|
///
|
||||||
/// // `a` is incremented once because the closure is evaluated lazily by
|
/// // `a` is incremented once because the closure is evaluated lazily by
|
||||||
/// // `then`.
|
/// // `then`.
|
||||||
|
/// assert_eq!(a, 1);
|
||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "lazy_bool_to_option", since = "1.50.0")]
|
#[stable(feature = "lazy_bool_to_option", since = "1.50.0")]
|
||||||
#[rustc_const_unstable(feature = "const_bool_to_option", issue = "91917")]
|
#[rustc_const_unstable(feature = "const_bool_to_option", issue = "91917")]
|
||||||
|
|||||||
Reference in New Issue
Block a user