blob: e566ed488c957b2d3ecdf74807dd7ff4ffd054e1 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// 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
}
|