]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/eq_op.stderr
Rollup merge of #84221 - ABouttefeux:generic-arg-elision, r=estebank
[rust.git] / src / tools / clippy / tests / ui / eq_op.stderr
1 error: equal expressions as operands to `==`
2   --> $DIR/eq_op.rs:12:5
3    |
4 LL |     1 == 1;
5    |     ^^^^^^
6    |
7    = note: `-D clippy::eq-op` implied by `-D warnings`
8
9 error: equal expressions as operands to `==`
10   --> $DIR/eq_op.rs:13:5
11    |
12 LL |     "no" == "no";
13    |     ^^^^^^^^^^^^
14
15 error: equal expressions as operands to `!=`
16   --> $DIR/eq_op.rs:15:5
17    |
18 LL |     false != false;
19    |     ^^^^^^^^^^^^^^
20
21 error: equal expressions as operands to `<`
22   --> $DIR/eq_op.rs:16:5
23    |
24 LL |     1.5 < 1.5;
25    |     ^^^^^^^^^
26
27 error: equal expressions as operands to `>=`
28   --> $DIR/eq_op.rs:17:5
29    |
30 LL |     1u64 >= 1u64;
31    |     ^^^^^^^^^^^^
32
33 error: equal expressions as operands to `&`
34   --> $DIR/eq_op.rs:20:5
35    |
36 LL |     (1 as u64) & (1 as u64);
37    |     ^^^^^^^^^^^^^^^^^^^^^^^
38
39 error: equal expressions as operands to `^`
40   --> $DIR/eq_op.rs:21:5
41    |
42 LL |     1 ^ ((((((1))))));
43    |     ^^^^^^^^^^^^^^^^^
44
45 error: equal expressions as operands to `<`
46   --> $DIR/eq_op.rs:24:5
47    |
48 LL |     (-(2) < -(2));
49    |     ^^^^^^^^^^^^^
50
51 error: equal expressions as operands to `==`
52   --> $DIR/eq_op.rs:25:5
53    |
54 LL |     ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
55    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56
57 error: equal expressions as operands to `&`
58   --> $DIR/eq_op.rs:25:6
59    |
60 LL |     ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
61    |      ^^^^^^^^^^^^^^^^^
62
63 error: equal expressions as operands to `&`
64   --> $DIR/eq_op.rs:25:27
65    |
66 LL |     ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
67    |                           ^^^^^^^^^^^^^^^^^
68
69 error: equal expressions as operands to `==`
70   --> $DIR/eq_op.rs:26:5
71    |
72 LL |     (1 * 2) + (3 * 4) == 1 * 2 + 3 * 4;
73    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74
75 error: equal expressions as operands to `!=`
76   --> $DIR/eq_op.rs:29:5
77    |
78 LL |     ([1] != [1]);
79    |     ^^^^^^^^^^^^
80
81 error: equal expressions as operands to `!=`
82   --> $DIR/eq_op.rs:30:5
83    |
84 LL |     ((1, 2) != (1, 2));
85    |     ^^^^^^^^^^^^^^^^^^
86
87 error: equal expressions as operands to `==`
88   --> $DIR/eq_op.rs:34:5
89    |
90 LL |     1 + 1 == 2;
91    |     ^^^^^^^^^^
92
93 error: equal expressions as operands to `==`
94   --> $DIR/eq_op.rs:35:5
95    |
96 LL |     1 - 1 == 0;
97    |     ^^^^^^^^^^
98
99 error: equal expressions as operands to `-`
100   --> $DIR/eq_op.rs:35:5
101    |
102 LL |     1 - 1 == 0;
103    |     ^^^^^
104
105 error: equal expressions as operands to `-`
106   --> $DIR/eq_op.rs:37:5
107    |
108 LL |     1 - 1;
109    |     ^^^^^
110
111 error: equal expressions as operands to `/`
112   --> $DIR/eq_op.rs:38:5
113    |
114 LL |     1 / 1;
115    |     ^^^^^
116
117 error: equal expressions as operands to `&&`
118   --> $DIR/eq_op.rs:39:5
119    |
120 LL |     true && true;
121    |     ^^^^^^^^^^^^
122
123 error: equal expressions as operands to `||`
124   --> $DIR/eq_op.rs:41:5
125    |
126 LL |     true || true;
127    |     ^^^^^^^^^^^^
128
129 error: equal expressions as operands to `&&`
130   --> $DIR/eq_op.rs:47:5
131    |
132 LL |     a == b && b == a;
133    |     ^^^^^^^^^^^^^^^^
134
135 error: equal expressions as operands to `&&`
136   --> $DIR/eq_op.rs:48:5
137    |
138 LL |     a != b && b != a;
139    |     ^^^^^^^^^^^^^^^^
140
141 error: equal expressions as operands to `&&`
142   --> $DIR/eq_op.rs:49:5
143    |
144 LL |     a < b && b > a;
145    |     ^^^^^^^^^^^^^^
146
147 error: equal expressions as operands to `&&`
148   --> $DIR/eq_op.rs:50:5
149    |
150 LL |     a <= b && b >= a;
151    |     ^^^^^^^^^^^^^^^^
152
153 error: equal expressions as operands to `==`
154   --> $DIR/eq_op.rs:53:5
155    |
156 LL |     a == a;
157    |     ^^^^^^
158
159 error: equal expressions as operands to `/`
160   --> $DIR/eq_op.rs:63:20
161    |
162 LL |     const D: u32 = A / A;
163    |                    ^^^^^
164
165 error: equal expressions as operands to `==`
166   --> $DIR/eq_op.rs:96:5
167    |
168 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
169    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
170    |
171    = note: `#[deny(clippy::eq_op)]` on by default
172
173 error: aborting due to 28 previous errors
174