]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/double_neg.rs
Auto merge of #87686 - matthiaskrgr:clippy_august_21_perf, r=jackh726
[rust.git] / src / tools / clippy / tests / ui / double_neg.rs
1 #[warn(clippy::double_neg)]
2 fn main() {
3     let x = 1;
4     -x;
5     -(-x);
6     --x;
7 }