We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Option::is_none
1 parent 5f10d31 commit 18b0e7bCopy full SHA for 18b0e7b
library/core/src/option.rs
@@ -209,7 +209,7 @@ impl<T> Option<T> {
209
/// assert_eq!(x.is_none(), true);
210
/// ```
211
#[must_use = "if you intended to assert that this doesn't have a value, consider \
212
- `.and_then(|| panic!(\"`Option` had a value when expected `None`\"))` instead"]
+ `.and_then(|_| panic!(\"`Option` had a value when expected `None`\"))` instead"]
213
#[inline]
214
#[rustc_const_stable(feature = "const_option", since = "1.48.0")]
215
#[stable(feature = "rust1", since = "1.0.0")]
0 commit comments