]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/double_comparison.stderr
iterate List by value
[rust.git] / tests / ui / double_comparison.stderr
index e6a0e976414df283e91b366c9c80435e918449e0..5dcda7b3af4ac48187d6d84a3559793199f87593 100644 (file)
@@ -1,51 +1,51 @@
 error: This binary expression can be simplified
--> $DIR/double_comparison.rs:4:8
-  |
-4 |     if x == y || x < y {
-  |        ^^^^^^^^^^^^^^^ help: try: `x <= y`
-  |
-  = note: `-D clippy::double-comparisons` implied by `-D warnings`
 --> $DIR/double_comparison.rs:6:8
+   |
+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:7:8
-  |
-7 |     if x < y || x == y {
-  |        ^^^^^^^^^^^^^^^ help: try: `x <= y`
 --> $DIR/double_comparison.rs:9:8
+   |
+LL |     if x < y || x == y {
+   |        ^^^^^^^^^^^^^^^ help: try: `x <= y`
 
 error: This binary expression can be simplified
-  --> $DIR/double_comparison.rs:10:8
+  --> $DIR/double_comparison.rs:12:8
    |
-10 |     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:13:8
+  --> $DIR/double_comparison.rs:15:8
    |
-13 |     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:16:8
+  --> $DIR/double_comparison.rs:18:8
    |
-16 |     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:19:8
+  --> $DIR/double_comparison.rs:21:8
    |
-19 |     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:22:8
+  --> $DIR/double_comparison.rs:24:8
    |
-22 |     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:25:8
+  --> $DIR/double_comparison.rs:27:8
    |
-25 |     if x >= y && x <= y {
+LL |     if x >= y && x <= y {
    |        ^^^^^^^^^^^^^^^^ help: try: `x == y`
 
 error: aborting due to 8 previous errors