Add missing assertion
This commit is contained in:
parent
804cd8499b
commit
ca26dec15f
1 changed files with 1 additions and 0 deletions
|
@ -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")]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue