summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/double_neg.rs
blob: d47dfcb5ba1eab1b8654a2c270700748923a4bee (plain)
1
2
3
4
5
6
7
#[warn(clippy::double_neg)]
fn main() {
    let x = 1;
    -x;
    -(-x);
    --x;
}