rust/tests/ui/double_neg.rs
2017-10-03 12:07:24 +02:00

10 lines
80 B
Rust

#[warn(double_neg)]
fn main() {
let x = 1;
-x;
-(-x);
--x;
}