]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/double_neg.rs
Rollup merge of #72606 - GuillaumeGomez:cell-example-update, r=Dylan-DPC
[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 }