Add missing assertion

This commit is contained in:
Venus Xeon-Blonde 2022-09-22 02:12:06 -04:00 committed by GitHub
parent 804cd8499b
commit ca26dec15f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,7 @@ impl bool {
///
/// // `a` is incremented once because the closure is evaluated lazily by
/// // `then`.
/// assert_eq!(a, 1);
/// ```
#[stable(feature = "lazy_bool_to_option", since = "1.50.0")]
#[rustc_const_unstable(feature = "const_bool_to_option", issue = "91917")]