rust/tests/ui/eq_op.stderr

215 lines
4.7 KiB
Plaintext
Raw Normal View History

error: this boolean expression can be simplified
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:37:5
|
37 | true && true;
2017-07-21 10:40:23 +02:00
| ^^^^^^^^^^^^ help: try: `true`
|
= note: `-D clippy::nonminimal-bool` implied by `-D warnings`
error: this boolean expression can be simplified
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:39:5
|
39 | true || true;
2017-07-21 10:40:23 +02:00
| ^^^^^^^^^^^^ help: try: `true`
error: this boolean expression can be simplified
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:45:5
|
45 | a == b && b == a;
2017-07-21 10:40:23 +02:00
| ^^^^^^^^^^^^^^^^ help: try: `a == b`
error: this boolean expression can be simplified
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:46:5
|
46 | a != b && b != a;
2017-07-21 10:40:23 +02:00
| ^^^^^^^^^^^^^^^^ help: try: `a != b`
error: this boolean expression can be simplified
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:47:5
|
47 | a < b && b > a;
2017-07-21 10:40:23 +02:00
| ^^^^^^^^^^^^^^ help: try: `a < b`
error: this boolean expression can be simplified
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:48:5
|
48 | a <= b && b >= a;
2017-07-21 10:40:23 +02:00
| ^^^^^^^^^^^^^^^^ help: try: `a <= b`
error: equal expressions as operands to `==`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:10:5
|
2017-02-08 14:58:07 +01:00
10 | 1 == 1;
| ^^^^^^
|
= note: `-D clippy::eq-op` implied by `-D warnings`
error: equal expressions as operands to `==`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:11:5
|
2017-02-08 14:58:07 +01:00
11 | "no" == "no";
| ^^^^^^^^^^^^
error: equal expressions as operands to `!=`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:13:5
|
2017-02-08 14:58:07 +01:00
13 | false != false;
| ^^^^^^^^^^^^^^
error: equal expressions as operands to `<`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:14:5
|
2017-02-08 14:58:07 +01:00
14 | 1.5 < 1.5;
| ^^^^^^^^^
error: equal expressions as operands to `>=`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:15:5
|
2017-02-08 14:58:07 +01:00
15 | 1u64 >= 1u64;
| ^^^^^^^^^^^^
error: equal expressions as operands to `&`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:18:5
|
2017-02-08 14:58:07 +01:00
18 | (1 as u64) & (1 as u64);
| ^^^^^^^^^^^^^^^^^^^^^^^
error: equal expressions as operands to `^`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:19:5
|
2017-02-08 14:58:07 +01:00
19 | 1 ^ ((((((1))))));
| ^^^^^^^^^^^^^^^^^
error: equal expressions as operands to `<`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:22:5
|
2017-02-08 14:58:07 +01:00
22 | (-(2) < -(2));
| ^^^^^^^^^^^^^
error: equal expressions as operands to `==`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:23:5
|
23 | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: equal expressions as operands to `&`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:23:6
|
23 | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
| ^^^^^^^^^^^^^^^^^
error: equal expressions as operands to `&`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:23:27
|
23 | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
| ^^^^^^^^^^^^^^^^^
error: equal expressions as operands to `==`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:24:5
|
24 | (1 * 2) + (3 * 4) == 1 * 2 + 3 * 4;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: equal expressions as operands to `!=`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:27:5
|
27 | ([1] != [1]);
| ^^^^^^^^^^^^
error: equal expressions as operands to `!=`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:28:5
|
28 | ((1, 2) != (1, 2));
| ^^^^^^^^^^^^^^^^^^
error: equal expressions as operands to `==`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:32:5
|
32 | 1 + 1 == 2;
| ^^^^^^^^^^
error: equal expressions as operands to `==`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:33:5
|
33 | 1 - 1 == 0;
| ^^^^^^^^^^
error: equal expressions as operands to `-`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:33:5
|
33 | 1 - 1 == 0;
| ^^^^^
error: equal expressions as operands to `-`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:35:5
|
35 | 1 - 1;
| ^^^^^
error: equal expressions as operands to `/`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:36:5
|
36 | 1 / 1;
| ^^^^^
error: equal expressions as operands to `&&`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:37:5
|
37 | true && true;
| ^^^^^^^^^^^^
error: equal expressions as operands to `||`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:39:5
|
39 | true || true;
| ^^^^^^^^^^^^
error: equal expressions as operands to `&&`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:45:5
|
45 | a == b && b == a;
| ^^^^^^^^^^^^^^^^
error: equal expressions as operands to `&&`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:46:5
|
46 | a != b && b != a;
| ^^^^^^^^^^^^^^^^
error: equal expressions as operands to `&&`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:47:5
|
47 | a < b && b > a;
| ^^^^^^^^^^^^^^
error: equal expressions as operands to `&&`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:48:5
|
48 | a <= b && b >= a;
| ^^^^^^^^^^^^^^^^
error: equal expressions as operands to `==`
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:51:5
|
51 | a == a;
| ^^^^^^
error: taken reference of right operand
2017-08-01 17:54:21 +02:00
--> $DIR/eq_op.rs:89:13
2017-04-28 17:07:39 +02:00
|
89 | let z = x & &y;
| ^^^^--
| |
2017-07-21 10:40:23 +02:00
| help: use the right value directly: `y`
2017-04-28 17:07:39 +02:00
|
= note: `-D clippy::op-ref` implied by `-D warnings`
error: equal expressions as operands to `/`
--> $DIR/eq_op.rs:97:20
|
97 | const D: u32 = A / A;
| ^^^^^
error: aborting due to 34 previous errors
2018-01-16 17:06:27 +01:00