We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a9a7a6 + 18b0e7b commit 28d6677Copy full SHA for 28d6677
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