mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
692bc344d5
Go over all structured parser suggestions and make them verbose style. When suggesting to add or remove delimiters, turn them into multiple suggestion parts.
58 lines
1.3 KiB
Plaintext
58 lines
1.3 KiB
Plaintext
error: `~` cannot be used as a unary operator
|
|
--> $DIR/issue-41679-tilde-bitwise-negation-attempt.rs:4:14
|
|
|
|
|
LL | let _x = ~1;
|
|
| ^
|
|
|
|
|
help: use `!` to perform bitwise not
|
|
|
|
|
LL | let _x = !1;
|
|
| ~
|
|
|
|
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
|
|
|
|
|
LL | let _y = !1;
|
|
| ~
|
|
|
|
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
|
|
|
|
|
LL | let _z = !false;
|
|
| ~
|
|
|
|
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
|
|
|
|
|
LL | let _a = !true;
|
|
| ~
|
|
|
|
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
|
|
|
|
|
LL | let _v = !v;
|
|
| ~
|
|
|
|
error: aborting due to 5 previous errors
|
|
|