]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/nonminimal_bool.stderr
Rollup merge of #102454 - chenyukang:fix-102396-missing-parentheses, r=lcnr
[rust.git] / src / tools / clippy / tests / ui / nonminimal_bool.stderr
index fc6a5ce1dc2eef4e6ffc2860aa19154b84c53614..91b5805aa97ab8f6b4c243c81bc840b1a4b3bb22 100644 (file)
@@ -107,5 +107,11 @@ LL |     let _ = !(a == b || c == d);
 LL |     let _ = a != b && c != d;
    |             ~~~~~~~~~~~~~~~~
 
-error: aborting due to 12 previous errors
+error: this boolean expression can be simplified
+  --> $DIR/nonminimal_bool.rs:62:8
+   |
+LL |     if matches!(true, true) && true {
+   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `matches!(true, true)`
+
+error: aborting due to 13 previous errors