2018-03-11 08:04:15 +00:00
|
|
|
error: `~` cannot be used as a unary operator
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/issue-41679-tilde-bitwise-negation-attempt.rs:4:14
|
2018-03-11 08:04:15 +00:00
|
|
|
|
|
2020-07-02 05:32:12 +00:00
|
|
|
LL | let _x = ~1;
|
|
|
|
| ^ help: use `!` to perform bitwise not
|
2018-03-11 08:04:15 +00:00
|
|
|
|
2022-09-15 09:33:28 +00:00
|
|
|
error: unexpected `1` after identifier
|
|
|
|
--> $DIR/issue-41679-tilde-bitwise-negation-attempt.rs:5:18
|
|
|
|
|
|
|
|
|
LL | let _y = not 1;
|
|
|
|
| ----^
|
|
|
|
| |
|
|
|
|
| help: use `!` to perform bitwise not
|
|
|
|
|
2022-09-15 14:39:16 +00:00
|
|
|
error: unexpected keyword `false` after identifier
|
|
|
|
--> $DIR/issue-41679-tilde-bitwise-negation-attempt.rs:6:18
|
|
|
|
|
|
|
|
|
LL | let _z = not false;
|
|
|
|
| ----^^^^^
|
|
|
|
| |
|
|
|
|
| help: use `!` to perform logical negation
|
|
|
|
|
|
|
|
error: unexpected keyword `true` after identifier
|
|
|
|
--> $DIR/issue-41679-tilde-bitwise-negation-attempt.rs:7:18
|
|
|
|
|
|
|
|
|
LL | let _a = not true;
|
|
|
|
| ----^^^^
|
|
|
|
| |
|
|
|
|
| help: use `!` to perform logical negation
|
|
|
|
|
|
|
|
error: unexpected `v` after identifier
|
|
|
|
--> $DIR/issue-41679-tilde-bitwise-negation-attempt.rs:9:18
|
|
|
|
|
|
|
|
|
LL | let _v = not v;
|
|
|
|
| ----^
|
|
|
|
| |
|
|
|
|
| help: use `!` to perform logical negation or bitwise not
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
2018-03-11 08:04:15 +00:00
|
|
|
|