mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 12:07:40 +00:00
10 lines
205 B
Rust
10 lines
205 B
Rust
//@ check-pass
|
|
fn main() {
|
|
let x = 1;
|
|
-x;
|
|
-(-x);
|
|
--x; //~ WARN use of a double negation
|
|
---x; //~ WARN use of a double negation
|
|
let _y = --(-x); //~ WARN use of a double negation
|
|
}
|