]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/single_match.rs
Rollup merge of #102625 - Rageking8:fix-backtrace-small-typo, r=m-ou-se
[rust.git] / src / tools / clippy / tests / ui / single_match.rs
index bd371888046361ceea6c5ce3b9c866301df7e5a4..d0c9b7b5663e7138bd2ff5298ca8cd8e94666383 100644 (file)
@@ -1,4 +1,5 @@
 #![warn(clippy::single_match)]
+#![allow(clippy::uninlined_format_args)]
 
 fn dummy() {}
 
@@ -234,4 +235,12 @@ macro_rules! single_match {
 
 fn main() {
     single_match!(5);
+
+    // Don't lint
+    let _ = match Some(0) {
+        #[cfg(feature = "foo")]
+        Some(10) => 11,
+        Some(x) => x,
+        _ => 0,
+    };
 }