2020-07-02 00:32:12 -05:00
|
|
|
// run-rustfix
|
|
|
|
|
2017-05-03 01:31:47 -05:00
|
|
|
fn main() {
|
2020-07-02 00:32:12 -05:00
|
|
|
let _x = ~1; //~ ERROR cannot be used as a unary operator
|
2022-09-15 04:33:28 -05:00
|
|
|
let _y = not 1; //~ ERROR unexpected `1` after identifier
|
2022-09-15 09:39:16 -05:00
|
|
|
let _z = not false; //~ ERROR unexpected keyword `false` after identifier
|
|
|
|
let _a = not true; //~ ERROR unexpected keyword `true` after identifier
|
|
|
|
let v = 1 + 2;
|
|
|
|
let _v = not v; //~ ERROR unexpected `v` after identifier
|
2017-05-03 01:31:47 -05:00
|
|
|
}
|