1 warning: unused comparison that must be used
2 --> $DIR/must-use-ops.rs:18:5
5 | ^^^^^^^^ the comparison produces a value
7 note: the lint level is defined here
8 --> $DIR/must-use-ops.rs:5:9
10 LL | #![warn(unused_must_use)]
12 help: use `let _ = ...` to ignore the resulting value
14 LL | let _ = val == 1;
17 warning: unused comparison that must be used
18 --> $DIR/must-use-ops.rs:19:5
21 | ^^^^^^^ the comparison produces a value
23 help: use `let _ = ...` to ignore the resulting value
28 warning: unused comparison that must be used
29 --> $DIR/must-use-ops.rs:20:5
32 | ^^^^^^^^ the comparison produces a value
34 help: use `let _ = ...` to ignore the resulting value
36 LL | let _ = val <= 1;
39 warning: unused comparison that must be used
40 --> $DIR/must-use-ops.rs:21:5
43 | ^^^^^^^^ the comparison produces a value
45 help: use `let _ = ...` to ignore the resulting value
47 LL | let _ = val != 1;
50 warning: unused comparison that must be used
51 --> $DIR/must-use-ops.rs:22:5
54 | ^^^^^^^^ the comparison produces a value
56 help: use `let _ = ...` to ignore the resulting value
58 LL | let _ = val >= 1;
61 warning: unused comparison that must be used
62 --> $DIR/must-use-ops.rs:23:5
65 | ^^^^^^^ the comparison produces a value
67 help: use `let _ = ...` to ignore the resulting value
72 warning: unused arithmetic operation that must be used
73 --> $DIR/must-use-ops.rs:26:5
76 | ^^^^^^^ the arithmetic operation produces a value
78 help: use `let _ = ...` to ignore the resulting value
83 warning: unused arithmetic operation that must be used
84 --> $DIR/must-use-ops.rs:27:5
87 | ^^^^^^^ the arithmetic operation produces a value
89 help: use `let _ = ...` to ignore the resulting value
94 warning: unused arithmetic operation that must be used
95 --> $DIR/must-use-ops.rs:28:5
98 | ^^^^^^^ the arithmetic operation produces a value
100 help: use `let _ = ...` to ignore the resulting value
102 LL | let _ = val / 2;
105 warning: unused arithmetic operation that must be used
106 --> $DIR/must-use-ops.rs:29:5
109 | ^^^^^^^ the arithmetic operation produces a value
111 help: use `let _ = ...` to ignore the resulting value
113 LL | let _ = val * 2;
116 warning: unused arithmetic operation that must be used
117 --> $DIR/must-use-ops.rs:30:5
120 | ^^^^^^^ the arithmetic operation produces a value
122 help: use `let _ = ...` to ignore the resulting value
124 LL | let _ = val % 2;
127 warning: unused logical operation that must be used
128 --> $DIR/must-use-ops.rs:33:5
131 | ^^^^^^^^^^^^ the logical operation produces a value
133 help: use `let _ = ...` to ignore the resulting value
135 LL | let _ = true && true;
138 warning: unused logical operation that must be used
139 --> $DIR/must-use-ops.rs:34:5
142 | ^^^^^^^^^^^^^ the logical operation produces a value
144 help: use `let _ = ...` to ignore the resulting value
146 LL | let _ = false || true;
149 warning: unused bitwise operation that must be used
150 --> $DIR/must-use-ops.rs:37:5
153 | ^^^^^^^ the bitwise operation produces a value
155 help: use `let _ = ...` to ignore the resulting value
157 LL | let _ = 5 ^ val;
160 warning: unused bitwise operation that must be used
161 --> $DIR/must-use-ops.rs:38:5
164 | ^^^^^^^ the bitwise operation produces a value
166 help: use `let _ = ...` to ignore the resulting value
168 LL | let _ = 5 & val;
171 warning: unused bitwise operation that must be used
172 --> $DIR/must-use-ops.rs:39:5
175 | ^^^^^^^ the bitwise operation produces a value
177 help: use `let _ = ...` to ignore the resulting value
179 LL | let _ = 5 | val;
182 warning: unused bitwise operation that must be used
183 --> $DIR/must-use-ops.rs:40:5
186 | ^^^^^^^^ the bitwise operation produces a value
188 help: use `let _ = ...` to ignore the resulting value
190 LL | let _ = 5 << val;
193 warning: unused bitwise operation that must be used
194 --> $DIR/must-use-ops.rs:41:5
197 | ^^^^^^^^ the bitwise operation produces a value
199 help: use `let _ = ...` to ignore the resulting value
201 LL | let _ = 5 >> val;
204 warning: unused unary operation that must be used
205 --> $DIR/must-use-ops.rs:44:5
208 | ^^^^ the unary operation produces a value
210 help: use `let _ = ...` to ignore the resulting value
215 warning: unused unary operation that must be used
216 --> $DIR/must-use-ops.rs:45:5
219 | ^^^^ the unary operation produces a value
221 help: use `let _ = ...` to ignore the resulting value
226 warning: unused unary operation that must be used
227 --> $DIR/must-use-ops.rs:46:5
230 | ^^^^^^^^^^^^ the unary operation produces a value
232 help: use `let _ = ...` to ignore the resulting value
234 LL | let _ = *val_pointer;
237 warning: 21 warnings emitted