1 error: this boolean expression can be simplified
5 | ^^^^^^^^^^^^ help: try: `true`
7 = note: `-D clippy::nonminimal-bool` implied by `-D warnings`
9 error: this boolean expression can be simplified
10 --> $DIR/eq_op.rs:37:5
13 | ^^^^^^^^^^^^ help: try: `true`
15 error: this boolean expression can be simplified
16 --> $DIR/eq_op.rs:43:5
18 LL | a == b && b == a;
19 | ^^^^^^^^^^^^^^^^ help: try: `a == b`
21 error: this boolean expression can be simplified
22 --> $DIR/eq_op.rs:44:5
24 LL | a != b && b != a;
25 | ^^^^^^^^^^^^^^^^ help: try: `a != b`
27 error: this boolean expression can be simplified
28 --> $DIR/eq_op.rs:45:5
31 | ^^^^^^^^^^^^^^ help: try: `a < b`
33 error: this boolean expression can be simplified
34 --> $DIR/eq_op.rs:46:5
36 LL | a <= b && b >= a;
37 | ^^^^^^^^^^^^^^^^ help: try: `a <= b`
39 error: equal expressions as operands to `==`
45 = note: `-D clippy::eq-op` implied by `-D warnings`
47 error: equal expressions as operands to `==`
53 error: equal expressions as operands to `!=`
54 --> $DIR/eq_op.rs:11:5
59 error: equal expressions as operands to `<`
60 --> $DIR/eq_op.rs:12:5
65 error: equal expressions as operands to `>=`
66 --> $DIR/eq_op.rs:13:5
71 error: equal expressions as operands to `&`
72 --> $DIR/eq_op.rs:16:5
74 LL | (1 as u64) & (1 as u64);
75 | ^^^^^^^^^^^^^^^^^^^^^^^
77 error: equal expressions as operands to `^`
78 --> $DIR/eq_op.rs:17:5
80 LL | 1 ^ ((((((1))))));
83 error: equal expressions as operands to `<`
84 --> $DIR/eq_op.rs:20:5
89 error: equal expressions as operands to `==`
90 --> $DIR/eq_op.rs:21:5
92 LL | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
93 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95 error: equal expressions as operands to `&`
96 --> $DIR/eq_op.rs:21:6
98 LL | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
101 error: equal expressions as operands to `&`
102 --> $DIR/eq_op.rs:21:27
104 LL | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
107 error: equal expressions as operands to `==`
108 --> $DIR/eq_op.rs:22:5
110 LL | (1 * 2) + (3 * 4) == 1 * 2 + 3 * 4;
111 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113 error: equal expressions as operands to `!=`
114 --> $DIR/eq_op.rs:25:5
119 error: equal expressions as operands to `!=`
120 --> $DIR/eq_op.rs:26:5
122 LL | ((1, 2) != (1, 2));
125 error: equal expressions as operands to `==`
126 --> $DIR/eq_op.rs:30:5
131 error: equal expressions as operands to `==`
132 --> $DIR/eq_op.rs:31:5
137 error: equal expressions as operands to `-`
138 --> $DIR/eq_op.rs:31:5
143 error: equal expressions as operands to `-`
144 --> $DIR/eq_op.rs:33:5
149 error: equal expressions as operands to `/`
150 --> $DIR/eq_op.rs:34:5
155 error: equal expressions as operands to `&&`
156 --> $DIR/eq_op.rs:35:5
161 error: equal expressions as operands to `||`
162 --> $DIR/eq_op.rs:37:5
167 error: equal expressions as operands to `&&`
168 --> $DIR/eq_op.rs:43:5
170 LL | a == b && b == a;
173 error: equal expressions as operands to `&&`
174 --> $DIR/eq_op.rs:44:5
176 LL | a != b && b != a;
179 error: equal expressions as operands to `&&`
180 --> $DIR/eq_op.rs:45:5
185 error: equal expressions as operands to `&&`
186 --> $DIR/eq_op.rs:46:5
188 LL | a <= b && b >= a;
191 error: equal expressions as operands to `==`
192 --> $DIR/eq_op.rs:49:5
197 error: taken reference of right operand
198 --> $DIR/eq_op.rs:87:13
203 | help: use the right value directly: `y`
205 = note: `-D clippy::op-ref` implied by `-D warnings`
207 error: equal expressions as operands to `/`
208 --> $DIR/eq_op.rs:95:20
210 LL | const D: u32 = A / A;
213 error: aborting due to 34 previous errors