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