]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/match_single_binding.fixed
Merge commit 'e329249b6a3a98830d860c74c8234a8dd9407436' into clippyup
[rust.git] / src / tools / clippy / tests / ui / match_single_binding.fixed
index b4ec525ada09a763059d8837fc06d572051f1a4b..b8dc8179f7d7d1c841a5df8475ebed31a52f0014 100644 (file)
@@ -106,10 +106,8 @@ fn main() {
         0 => println!("Array index start"),
         _ => println!("Not an array index start"),
     }
-    // False negative
+
+    // Lint
     let x = 1;
-    match x {
-        // =>
-        _ => println!("Not an array index start"),
-    }
+    println!("Not an array index start");
 }