]> git.lizzy.rs Git - rust.git/blob - tests/ui/assign_ops.stderr
remove all //~ from tests
[rust.git] / tests / ui / assign_ops.stderr
1 error: assign operation detected
2  --> $DIR/assign_ops.rs:8:5
3   |
4 8 |     i += 2;
5   |     ^^^^^^
6   |
7 note: lint level defined here
8  --> $DIR/assign_ops.rs:4:8
9   |
10 4 | #[deny(assign_ops)]
11   |        ^^^^^^^^^^
12 help: replace it with
13   |     i = i + 2;
14
15 error: assign operation detected
16   --> $DIR/assign_ops.rs:11:5
17    |
18 11 |     i += 2 + 17;
19    |     ^^^^^^^^^^^
20    |
21 help: replace it with
22    |     i = i + 2 + 17;
23
24 error: assign operation detected
25   --> $DIR/assign_ops.rs:14:5
26    |
27 14 |     i -= 6;
28    |     ^^^^^^
29    |
30 help: replace it with
31    |     i = i - 6;
32
33 error: assign operation detected
34   --> $DIR/assign_ops.rs:17:5
35    |
36 17 |     i -= 2 - 1;
37    |     ^^^^^^^^^^
38    |
39 help: replace it with
40    |     i = i - (2 - 1);
41
42 error: assign operation detected
43   --> $DIR/assign_ops.rs:21:5
44    |
45 21 |     i *= 5;
46    |     ^^^^^^
47    |
48 help: replace it with
49    |     i = i * 5;
50
51 error: assign operation detected
52   --> $DIR/assign_ops.rs:24:5
53    |
54 24 |     i *= 1+5;
55    |     ^^^^^^^^
56    |
57 help: replace it with
58    |     i = i * (1+5);
59
60 error: assign operation detected
61   --> $DIR/assign_ops.rs:27:5
62    |
63 27 |     i /= 32;
64    |     ^^^^^^^
65    |
66 help: replace it with
67    |     i = i / 32;
68
69 error: assign operation detected
70   --> $DIR/assign_ops.rs:30:5
71    |
72 30 |     i /= 32 | 5;
73    |     ^^^^^^^^^^^
74    |
75 help: replace it with
76    |     i = i / (32 | 5);
77
78 error: assign operation detected
79   --> $DIR/assign_ops.rs:33:5
80    |
81 33 |     i /= 32 / 5;
82    |     ^^^^^^^^^^^
83    |
84 help: replace it with
85    |     i = i / (32 / 5);
86
87 error: assign operation detected
88   --> $DIR/assign_ops.rs:36:5
89    |
90 36 |     i %= 42;
91    |     ^^^^^^^
92    |
93 help: replace it with
94    |     i = i % 42;
95
96 error: assign operation detected
97   --> $DIR/assign_ops.rs:39:5
98    |
99 39 |     i >>= i;
100    |     ^^^^^^^
101    |
102 help: replace it with
103    |     i = i >> i;
104
105 error: assign operation detected
106   --> $DIR/assign_ops.rs:42:5
107    |
108 42 |     i <<= 9 + 6 - 7;
109    |     ^^^^^^^^^^^^^^^
110    |
111 help: replace it with
112    |     i = i << (9 + 6 - 7);
113
114 error: assign operation detected
115   --> $DIR/assign_ops.rs:45:5
116    |
117 45 |     i += 1 << 5;
118    |     ^^^^^^^^^^^
119    |
120 help: replace it with
121    |     i = i + (1 << 5);
122
123 error: manual implementation of an assign operation
124   --> $DIR/assign_ops.rs:55:5
125    |
126 55 |     a = a + 1;
127    |     ^^^^^^^^^
128    |
129 note: lint level defined here
130   --> $DIR/assign_ops.rs:52:8
131    |
132 52 | #[deny(assign_op_pattern)]
133    |        ^^^^^^^^^^^^^^^^^
134 help: replace it with
135    |     a += 1;
136
137 error: manual implementation of an assign operation
138   --> $DIR/assign_ops.rs:58:5
139    |
140 58 |     a = 1 + a;
141    |     ^^^^^^^^^
142    |
143 help: replace it with
144    |     a += 1;
145
146 error: manual implementation of an assign operation
147   --> $DIR/assign_ops.rs:61:5
148    |
149 61 |     a = a - 1;
150    |     ^^^^^^^^^
151    |
152 help: replace it with
153    |     a -= 1;
154
155 error: manual implementation of an assign operation
156   --> $DIR/assign_ops.rs:64:5
157    |
158 64 |     a = a * 99;
159    |     ^^^^^^^^^^
160    |
161 help: replace it with
162    |     a *= 99;
163
164 error: manual implementation of an assign operation
165   --> $DIR/assign_ops.rs:67:5
166    |
167 67 |     a = 42 * a;
168    |     ^^^^^^^^^^
169    |
170 help: replace it with
171    |     a *= 42;
172
173 error: manual implementation of an assign operation
174   --> $DIR/assign_ops.rs:70:5
175    |
176 70 |     a = a / 2;
177    |     ^^^^^^^^^
178    |
179 help: replace it with
180    |     a /= 2;
181
182 error: manual implementation of an assign operation
183   --> $DIR/assign_ops.rs:73:5
184    |
185 73 |     a = a % 5;
186    |     ^^^^^^^^^
187    |
188 help: replace it with
189    |     a %= 5;
190
191 error: manual implementation of an assign operation
192   --> $DIR/assign_ops.rs:76:5
193    |
194 76 |     a = a & 1;
195    |     ^^^^^^^^^
196    |
197 help: replace it with
198    |     a &= 1;
199
200 error: aborting due to 21 previous errors
201