]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/double_comparison.stderr
iterate List by value
[rust.git] / tests / ui / double_comparison.stderr
index 646b6f13faba9cc4ee99e8e6913b956de4a2e7a1..5dcda7b3af4ac48187d6d84a3559793199f87593 100644 (file)
@@ -1,51 +1,51 @@
 error: This binary expression can be simplified
-  --> $DIR/double_comparison.rs:14:8
+  --> $DIR/double_comparison.rs:6:8
    |
-14 |     if x == y || x < y {
+LL |     if x == y || x < y {
    |        ^^^^^^^^^^^^^^^ help: try: `x <= y`
    |
    = note: `-D clippy::double-comparisons` implied by `-D warnings`
 
 error: This binary expression can be simplified
-  --> $DIR/double_comparison.rs:17:8
+  --> $DIR/double_comparison.rs:9:8
    |
-17 |     if x < y || x == y {
+LL |     if x < y || x == y {
    |        ^^^^^^^^^^^^^^^ help: try: `x <= y`
 
 error: This binary expression can be simplified
-  --> $DIR/double_comparison.rs:20:8
+  --> $DIR/double_comparison.rs:12:8
    |
-20 |     if x == y || x > y {
+LL |     if x == y || x > y {
    |        ^^^^^^^^^^^^^^^ help: try: `x >= y`
 
 error: This binary expression can be simplified
-  --> $DIR/double_comparison.rs:23:8
+  --> $DIR/double_comparison.rs:15:8
    |
-23 |     if x > y || x == y {
+LL |     if x > y || x == y {
    |        ^^^^^^^^^^^^^^^ help: try: `x >= y`
 
 error: This binary expression can be simplified
-  --> $DIR/double_comparison.rs:26:8
+  --> $DIR/double_comparison.rs:18:8
    |
-26 |     if x < y || x > y {
+LL |     if x < y || x > y {
    |        ^^^^^^^^^^^^^^ help: try: `x != y`
 
 error: This binary expression can be simplified
-  --> $DIR/double_comparison.rs:29:8
+  --> $DIR/double_comparison.rs:21:8
    |
-29 |     if x > y || x < y {
+LL |     if x > y || x < y {
    |        ^^^^^^^^^^^^^^ help: try: `x != y`
 
 error: This binary expression can be simplified
-  --> $DIR/double_comparison.rs:32:8
+  --> $DIR/double_comparison.rs:24:8
    |
-32 |     if x <= y && x >= y {
+LL |     if x <= y && x >= y {
    |        ^^^^^^^^^^^^^^^^ help: try: `x == y`
 
 error: This binary expression can be simplified
-  --> $DIR/double_comparison.rs:35:8
+  --> $DIR/double_comparison.rs:27:8
    |
-35 |     if x >= y && x <= y {
+LL |     if x >= y && x <= y {
    |        ^^^^^^^^^^^^^^^^ help: try: `x == y`
 
 error: aborting due to 8 previous errors