We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43e3384 commit cc2f447Copy full SHA for cc2f447
tests/ui/allow_attributes.fixed
@@ -58,3 +58,10 @@ fn msrv_1_80() {
58
#[allow(unused)]
59
let x = 1;
60
}
61
+
62
+#[deny(clippy::allow_attributes)]
63
+fn deny_allow_attributes() -> Option<u8> {
64
+ let allow = None;
65
+ allow?;
66
+ Some(42)
67
+}
tests/ui/allow_attributes.rs
0 commit comments