]> git.lizzy.rs Git - rust.git/blob - tests/ui/double_neg.rs
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / double_neg.rs
1 #[warn(clippy::double_neg)]
2 #[allow(clippy::no_effect)]
3 fn main() {
4     let x = 1;
5     -x;
6     -(-x);
7     --x;
8 }