]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/double_neg.rs
Merge commit 'd556c56f792756dd7cfec742b9f2e07612dc10f4' into sync_cg_clif-2021-02-01
[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 }