]> git.lizzy.rs Git - rust.git/blob - tests/ui/double_neg.rs
Adapt ui-tests to the tool_lints
[rust.git] / tests / ui / double_neg.rs
1 #![feature(tool_lints)]
2
3
4 #[warn(clippy::double_neg)]
5 fn main() {
6     let x = 1;
7     -x;
8     -(-x);
9     --x;
10 }