mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
11 lines
377 B
Rust
11 lines
377 B
Rust
// run-rustfix
|
|
|
|
fn main() {
|
|
let _x = !1; //~ ERROR cannot be used as a unary operator
|
|
let _y = !1; //~ ERROR unexpected `1` after identifier
|
|
let _z = !false; //~ ERROR unexpected keyword `false` after identifier
|
|
let _a = !true; //~ ERROR unexpected keyword `true` after identifier
|
|
let v = 1 + 2;
|
|
let _v = !v; //~ ERROR unexpected `v` after identifier
|
|
}
|