| error: operator precedence might not be obvious | |
| --> tests/ui/precedence.rs:21:5 | |
| | | |
| LL | 1 << 2 + 3; | |
| | ^^^^^^^^^^ help: consider parenthesizing your expression: `1 << (2 + 3)` | |
| | | |
| = note: `-D clippy::precedence` implied by `-D warnings` | |
| = help: to override `-D warnings` add `#[allow(clippy::precedence)]` | |
| error: operator precedence might not be obvious | |
| --> tests/ui/precedence.rs:23:5 | |
| | | |
| LL | 1 + 2 << 3; | |
| | ^^^^^^^^^^ help: consider parenthesizing your expression: `(1 + 2) << 3` | |
| error: operator precedence might not be obvious | |
| --> tests/ui/precedence.rs:25:5 | |
| | | |
| LL | 4 >> 1 + 1; | |
| | ^^^^^^^^^^ help: consider parenthesizing your expression: `4 >> (1 + 1)` | |
| error: operator precedence might not be obvious | |
| --> tests/ui/precedence.rs:27:5 | |
| | | |
| LL | 1 + 3 >> 2; | |
| | ^^^^^^^^^^ help: consider parenthesizing your expression: `(1 + 3) >> 2` | |
| error: operator precedence might not be obvious | |
| --> tests/ui/precedence.rs:29:5 | |
| | | |
| LL | 1 ^ 1 - 1; | |
| | ^^^^^^^^^ help: consider parenthesizing your expression: `1 ^ (1 - 1)` | |
| error: operator precedence might not be obvious | |
| --> tests/ui/precedence.rs:31:5 | |
| | | |
| LL | 3 | 2 - 1; | |
| | ^^^^^^^^^ help: consider parenthesizing your expression: `3 | (2 - 1)` | |
| error: operator precedence might not be obvious | |
| --> tests/ui/precedence.rs:33:5 | |
| | | |
| LL | 3 & 5 - 2; | |
| | ^^^^^^^^^ help: consider parenthesizing your expression: `3 & (5 - 2)` | |
| error: precedence might not be obvious | |
| --> tests/ui/precedence.rs:56:13 | |
| | | |
| LL | let f = |x: W| -> _ { x }.clone(); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: consider parenthesizing the closure | |
| | | |
| LL | let f = (|x: W| -> _ { x }).clone(); | |
| | + + | |
| error: precedence might not be obvious | |
| --> tests/ui/precedence.rs:60:13 | |
| | | |
| LL | let f = move |x: W| -> _ { x }.clone(); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | | |
| help: consider parenthesizing the closure | |
| | | |
| LL | let f = (move |x: W| -> _ { x }).clone(); | |
| | + + | |
| error: aborting due to 9 previous errors | |