]> git.lizzy.rs Git - rust.git/blob - tests/ui/suspicious_unary_op_formatting.stderr
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / suspicious_unary_op_formatting.stderr
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    |
7    = help: put a space between `>` and `-` and remove the space after `-`
8    = note: `-D clippy::suspicious-unary-op-formatting` implied by `-D warnings`
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