Files
rust/src/test/ui/lint/unused/must-use-ops.stderr

176 lines
5.0 KiB
Plaintext
Raw Normal View History

warning: unused comparison that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:12:5
|
LL | val == 1;
| ^^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = val == 1`
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:5:9
|
LL | #![warn(unused_must_use)]
| ^^^^^^^^^^^^^^^
= note: the comparison produces a value
warning: unused comparison that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:13:5
|
LL | val < 1;
| ^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = val < 1`
|
= note: the comparison produces a value
warning: unused comparison that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:14:5
|
LL | val <= 1;
| ^^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = val <= 1`
|
= note: the comparison produces a value
warning: unused comparison that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:15:5
|
LL | val != 1;
| ^^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = val != 1`
|
= note: the comparison produces a value
warning: unused comparison that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:16:5
|
LL | val >= 1;
| ^^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = val >= 1`
|
= note: the comparison produces a value
warning: unused comparison that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:17:5
|
LL | val > 1;
| ^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = val > 1`
|
= note: the comparison produces a value
warning: unused arithmetic operation that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:20:5
|
LL | val + 2;
| ^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = val + 2`
|
= note: the arithmetic operation produces a value
warning: unused arithmetic operation that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:21:5
|
LL | val - 2;
| ^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = val - 2`
|
= note: the arithmetic operation produces a value
warning: unused arithmetic operation that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:22:5
|
LL | val / 2;
| ^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = val / 2`
|
= note: the arithmetic operation produces a value
warning: unused arithmetic operation that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:23:5
|
LL | val * 2;
| ^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = val * 2`
|
= note: the arithmetic operation produces a value
warning: unused arithmetic operation that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:24:5
|
LL | val % 2;
| ^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = val % 2`
|
= note: the arithmetic operation produces a value
warning: unused logical operation that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:27:5
|
LL | true && true;
| ^^^^^^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = true && true`
|
= note: the logical operation produces a value
warning: unused logical operation that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:28:5
|
LL | false || true;
| ^^^^^^^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = false || true`
|
= note: the logical operation produces a value
warning: unused bitwise operation that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:31:5
|
LL | 5 ^ val;
| ^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = 5 ^ val`
|
= note: the bitwise operation produces a value
warning: unused bitwise operation that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:32:5
|
LL | 5 & val;
| ^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = 5 & val`
|
= note: the bitwise operation produces a value
warning: unused bitwise operation that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:33:5
|
LL | 5 | val;
| ^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = 5 | val`
|
= note: the bitwise operation produces a value
warning: unused bitwise operation that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:34:5
|
LL | 5 << val;
| ^^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = 5 << val`
|
= note: the bitwise operation produces a value
warning: unused bitwise operation that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:35:5
|
LL | 5 >> val;
| ^^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = 5 >> val`
|
= note: the bitwise operation produces a value
warning: unused unary operation that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:38:5
|
LL | !val;
| ^^^^ help: use `let _ = ...` to ignore it: `let _ = !val`
|
= note: the unary operation produces a value
warning: unused unary operation that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:39:5
|
LL | -val;
| ^^^^ help: use `let _ = ...` to ignore it: `let _ = -val`
|
= note: the unary operation produces a value
warning: unused unary operation that must be used
2018-12-25 08:56:47 -07:00
--> $DIR/must-use-ops.rs:40:5
|
LL | *val_pointer;
| ^^^^^^^^^^^^ help: use `let _ = ...` to ignore it: `let _ = *val_pointer`
|
= note: the unary operation produces a value
warning: 21 warnings emitted