2017-02-07 20:05:30 +00:00
|
|
|
error: equal expressions as operands to `==`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:12:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | 1 == 1;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::eq-op` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:13:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | "no" == "no";
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `!=`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:15:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | false != false;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `<`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:16:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | 1.5 < 1.5;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `>=`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:17:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | 1u64 >= 1u64;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `&`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:20:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | (1 as u64) & (1 as u64);
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `^`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:21:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | 1 ^ ((((((1))))));
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `<`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:24:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | (-(2) < -(2));
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:25:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `&`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:25:6
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `&`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:25:27
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:26:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | (1 * 2) + (3 * 4) == 1 * 2 + 3 * 4;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `!=`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:29:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | ([1] != [1]);
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `!=`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:30:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | ((1, 2) != (1, 2));
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:34:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | 1 + 1 == 2;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:35:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | 1 - 1 == 0;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `-`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:35:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | 1 - 1 == 0;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `-`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:37:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | 1 - 1;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `/`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:38:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | 1 / 1;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `&&`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:39:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | true && true;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `||`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:41:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | true || true;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `&&`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:47:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | a == b && b == a;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `&&`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:48:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | a != b && b != a;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `&&`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:49:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | a < b && b > a;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `&&`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:50:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | a <= b && b >= a;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:53:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | a == a;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^
|
|
|
|
|
2018-03-23 18:26:52 +00:00
|
|
|
error: equal expressions as operands to `/`
|
2020-10-28 22:36:07 +00:00
|
|
|
--> $DIR/eq_op.rs:63:20
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
LL | const D: u32 = A / A;
|
|
|
|
| ^^^^^
|
2018-03-23 18:26:52 +00:00
|
|
|
|
2020-12-06 14:01:03 +00:00
|
|
|
error: equal expressions as operands to `==`
|
|
|
|
--> $DIR/eq_op.rs:96:5
|
|
|
|
|
|
|
|
|
LL | (n1.inner.0).0 == (n1.inner.0).0 && (n1.inner.1).0 == (n2.inner.1).0 && (n1.inner.2).0 == (n2.inner.2).0
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `#[deny(clippy::eq_op)]` on by default
|
|
|
|
|
|
|
|
error: aborting due to 28 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|