mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
11 lines
335 B
Text
11 lines
335 B
Text
error: `--x` could be misinterpreted as pre-decrement by C programmers, is usually a no-op
|
|
--> tests/ui/double_neg.rs:7:5
|
|
|
|
|
LL | --x;
|
|
| ^^^
|
|
|
|
|
= note: `-D clippy::double-neg` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::double_neg)]`
|
|
|
|
error: aborting due to 1 previous error
|
|
|