| warning: unused comparison that must be used |
| --> $DIR/must-use-ops.rs:22:5 |
| | |
| LL | val == 1; |
| | ^^^^^^^^ |
| | |
| note: lint level defined here |
| --> $DIR/must-use-ops.rs:15:9 |
| | |
| LL | #![warn(unused_must_use)] |
| | ^^^^^^^^^^^^^^^ |
| |
| warning: unused comparison that must be used |
| --> $DIR/must-use-ops.rs:23:5 |
| | |
| LL | val < 1; |
| | ^^^^^^^ |
| |
| warning: unused comparison that must be used |
| --> $DIR/must-use-ops.rs:24:5 |
| | |
| LL | val <= 1; |
| | ^^^^^^^^ |
| |
| warning: unused comparison that must be used |
| --> $DIR/must-use-ops.rs:25:5 |
| | |
| LL | val != 1; |
| | ^^^^^^^^ |
| |
| warning: unused comparison that must be used |
| --> $DIR/must-use-ops.rs:26:5 |
| | |
| LL | val >= 1; |
| | ^^^^^^^^ |
| |
| warning: unused comparison that must be used |
| --> $DIR/must-use-ops.rs:27:5 |
| | |
| LL | val > 1; |
| | ^^^^^^^ |
| |
| warning: unused arithmetic operation that must be used |
| --> $DIR/must-use-ops.rs:30:5 |
| | |
| LL | val + 2; |
| | ^^^^^^^ |
| |
| warning: unused arithmetic operation that must be used |
| --> $DIR/must-use-ops.rs:31:5 |
| | |
| LL | val - 2; |
| | ^^^^^^^ |
| |
| warning: unused arithmetic operation that must be used |
| --> $DIR/must-use-ops.rs:32:5 |
| | |
| LL | val / 2; |
| | ^^^^^^^ |
| |
| warning: unused arithmetic operation that must be used |
| --> $DIR/must-use-ops.rs:33:5 |
| | |
| LL | val * 2; |
| | ^^^^^^^ |
| |
| warning: unused arithmetic operation that must be used |
| --> $DIR/must-use-ops.rs:34:5 |
| | |
| LL | val % 2; |
| | ^^^^^^^ |
| |
| warning: unused logical operation that must be used |
| --> $DIR/must-use-ops.rs:37:5 |
| | |
| LL | true && true; |
| | ^^^^^^^^^^^^ |
| |
| warning: unused logical operation that must be used |
| --> $DIR/must-use-ops.rs:38:5 |
| | |
| LL | false || true; |
| | ^^^^^^^^^^^^^ |
| |
| warning: unused bitwise operation that must be used |
| --> $DIR/must-use-ops.rs:41:5 |
| | |
| LL | 5 ^ val; |
| | ^^^^^^^ |
| |
| warning: unused bitwise operation that must be used |
| --> $DIR/must-use-ops.rs:42:5 |
| | |
| LL | 5 & val; |
| | ^^^^^^^ |
| |
| warning: unused bitwise operation that must be used |
| --> $DIR/must-use-ops.rs:43:5 |
| | |
| LL | 5 | val; |
| | ^^^^^^^ |
| |
| warning: unused bitwise operation that must be used |
| --> $DIR/must-use-ops.rs:44:5 |
| | |
| LL | 5 << val; |
| | ^^^^^^^^ |
| |
| warning: unused bitwise operation that must be used |
| --> $DIR/must-use-ops.rs:45:5 |
| | |
| LL | 5 >> val; |
| | ^^^^^^^^ |
| |
| warning: unused unary operation that must be used |
| --> $DIR/must-use-ops.rs:48:5 |
| | |
| LL | !val; |
| | ^^^^ |
| |
| warning: unused unary operation that must be used |
| --> $DIR/must-use-ops.rs:49:5 |
| | |
| LL | -val; |
| | ^^^^ |
| |
| warning: unused unary operation that must be used |
| --> $DIR/must-use-ops.rs:50:5 |
| | |
| LL | *val_pointer; |
| | ^^^^^^^^^^^^ |
| |