mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 08:36:03 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
12 lines
331 B
Plaintext
12 lines
331 B
Plaintext
error: `--x` could be misinterpreted as pre-decrement by C programmers, is usually a no-op
|
|
--> $DIR/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
|
|
|