mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-18 10:48:36 +00:00
38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
10 lines
257 B
Text
10 lines
257 B
Text
error: `--x` could be misinterpreted as pre-decrement by C programmers, is usually a no-op
|
|
--> $DIR/double_neg.rs:6:5
|
|
|
|
|
LL | --x;
|
|
| ^^^
|
|
|
|
|
= note: `-D clippy::double-neg` implied by `-D warnings`
|
|
|
|
error: aborting due to previous error
|
|
|