]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/match_as_ref.fixed
Merge commit 'e329249b6a3a98830d860c74c8234a8dd9407436' into clippyup
[rust.git] / src / tools / clippy / tests / ui / match_as_ref.fixed
index c61eb9216643e14159ca5d6fb26b93764b05e264..ddfa1e741ada439e347229fe090e7ad508a9dffe 100644 (file)
@@ -32,4 +32,12 @@ mod issue4437 {
     }
 }
 
-fn main() {}
+fn main() {
+    // Don't lint
+    let _ = match Some(0) {
+        #[cfg(feature = "foo")]
+        Some(ref x) if *x > 50 => None,
+        Some(ref x) => Some(x),
+        None => None,
+    };
+}