]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/collapsible_if.stderr
Merge commit '5034d47f721ff4c3a3ff2aca9ef2ef3e1d067f9f' into clippyup
[rust.git] / src / tools / clippy / tests / ui / collapsible_if.stderr
index f56dd65b9dd26c77144b24d0763ac472b739c238..acd1ec3f2caeaf6a924529a5f1d9307e8ca9075a 100644 (file)
@@ -118,5 +118,13 @@ LL |         println!("Hello world!");
 LL |     }
    |
 
-error: aborting due to 7 previous errors
+error: this `if` statement can be collapsed
+  --> $DIR/collapsible_if.rs:154:5
+   |
+LL | /     if matches!(true, true) {
+LL | |         if matches!(true, true) {}
+LL | |     }
+   | |_____^ help: collapse nested if block: `if matches!(true, true) && matches!(true, true) {}`
+
+error: aborting due to 8 previous errors