]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/redundant_pattern_matching_option.fixed
Auto merge of #8374 - Alexendoo:bless-revisions, r=camsteffen
[rust.git] / tests / ui / redundant_pattern_matching_option.fixed
index 813e268a60c3debe1b49c4a4b4e81bad6f5b4f7d..a89845c1dd32b900c544ab169f6b91cc70640e74 100644 (file)
@@ -80,3 +80,9 @@ const fn issue6067() {
 
     None::<()>.is_none();
 }
+
+#[allow(clippy::deref_addrof, dead_code, clippy::needless_borrow)]
+fn issue7921() {
+    if (&None::<()>).is_none() {}
+    if (&None::<()>).is_none() {}
+}