2017-02-07 20:05:30 +00:00
|
|
|
error: equal expressions as operands to `==`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:9:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = 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 `==`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:10:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = "no" == "no";
|
|
|
|
| ^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `!=`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:12:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = false != false;
|
|
|
|
| ^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `<`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:13:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = 1.5 < 1.5;
|
|
|
|
| ^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `>=`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:14:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = 1u64 >= 1u64;
|
|
|
|
| ^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `&`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:17:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = (1u32 as u64) & (1u32 as u64);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `^`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:20:17
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = 1 ^ ((((((1))))));
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `<`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:24:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = (-(2) < -(2));
|
|
|
|
| ^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:25:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `&`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:25:14
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `&`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:25:35
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:26:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = (1 * 2) + (3 * 4) == 1 * 2 + 3 * 4;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `!=`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:29:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = ([1] != [1]);
|
|
|
|
| ^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `!=`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:30:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = ((1, 2) != (1, 2));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:34:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = 1 + 1 == 2;
|
|
|
|
| ^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:35:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = 1 - 1 == 0;
|
|
|
|
| ^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `-`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:35:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = 1 - 1 == 0;
|
|
|
|
| ^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `-`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:37:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = 1 - 1;
|
|
|
|
| ^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `/`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:38:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = 1 / 1;
|
|
|
|
| ^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `&&`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:39:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = true && true;
|
|
|
|
| ^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `||`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:41:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = true || true;
|
|
|
|
| ^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `&&`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:46:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = a == b && b == a;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `&&`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:47:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = a != b && b != a;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `&&`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:48:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = a < b && b > a;
|
|
|
|
| ^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `&&`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:49:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = a <= b && b >= a;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: equal expressions as operands to `==`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:52:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2022-02-10 17:40:06 +00:00
|
|
|
LL | let _ = a == a;
|
|
|
|
| ^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-03-23 18:26:52 +00:00
|
|
|
error: equal expressions as operands to `/`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:62: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 `==`
|
2022-11-21 19:34:47 +00:00
|
|
|
--> $DIR/eq_op.rs:93:5
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
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
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 28 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|