]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: by not having a space between `>` and `-` it looks like `>-` is a single operator |
2 | --> $DIR/suspicious_unary_op_formatting.rs:8:9 | |
3 | | | |
4 | LL | if a >- 30 {} | |
5 | | ^^^^ | |
6 | | | |
f20569fa | 7 | = help: put a space between `>` and `-` and remove the space after `-` |
2b03887a | 8 | = note: `-D clippy::suspicious-unary-op-formatting` implied by `-D warnings` |
f20569fa XL |
9 | |
10 | error: by not having a space between `>=` and `-` it looks like `>=-` is a single operator | |
11 | --> $DIR/suspicious_unary_op_formatting.rs:9:9 | |
12 | | | |
13 | LL | if a >=- 30 {} | |
14 | | ^^^^^ | |
15 | | | |
16 | = help: put a space between `>=` and `-` and remove the space after `-` | |
17 | ||
18 | error: by not having a space between `&&` and `!` it looks like `&&!` is a single operator | |
19 | --> $DIR/suspicious_unary_op_formatting.rs:14:9 | |
20 | | | |
21 | LL | if b &&! c {} | |
22 | | ^^^^^ | |
23 | | | |
24 | = help: put a space between `&&` and `!` and remove the space after `!` | |
25 | ||
26 | error: by not having a space between `>` and `-` it looks like `>-` is a single operator | |
27 | --> $DIR/suspicious_unary_op_formatting.rs:16:9 | |
28 | | | |
29 | LL | if a >- 30 {} | |
30 | | ^^^^^^ | |
31 | | | |
32 | = help: put a space between `>` and `-` and remove the space after `-` | |
33 | ||
34 | error: aborting due to 4 previous errors | |
35 |