mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +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.
99 lines
2.6 KiB
Plaintext
99 lines
2.6 KiB
Plaintext
error: `and` is not a logical operator
|
|
--> $DIR/issue-54109-without-witness.rs:13:15
|
|
|
|
|
LL | let _ = a and b;
|
|
| ^^^
|
|
|
|
|
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
|
|
help: use `&&` to perform logical conjunction
|
|
|
|
|
LL | let _ = a && b;
|
|
| ~~
|
|
|
|
error: `and` is not a logical operator
|
|
--> $DIR/issue-54109-without-witness.rs:15:10
|
|
|
|
|
LL | if a and b {
|
|
| ^^^
|
|
|
|
|
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
|
|
help: use `&&` to perform logical conjunction
|
|
|
|
|
LL | if a && b {
|
|
| ~~
|
|
|
|
error: `or` is not a logical operator
|
|
--> $DIR/issue-54109-without-witness.rs:24:15
|
|
|
|
|
LL | let _ = a or b;
|
|
| ^^
|
|
|
|
|
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
|
|
help: use `||` to perform logical disjunction
|
|
|
|
|
LL | let _ = a || b;
|
|
| ~~
|
|
|
|
error: `or` is not a logical operator
|
|
--> $DIR/issue-54109-without-witness.rs:26:10
|
|
|
|
|
LL | if a or b {
|
|
| ^^
|
|
|
|
|
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
|
|
help: use `||` to perform logical disjunction
|
|
|
|
|
LL | if a || b {
|
|
| ~~
|
|
|
|
error: `and` is not a logical operator
|
|
--> $DIR/issue-54109-without-witness.rs:34:11
|
|
|
|
|
LL | if (a and b) {
|
|
| ^^^
|
|
|
|
|
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
|
|
help: use `&&` to perform logical conjunction
|
|
|
|
|
LL | if (a && b) {
|
|
| ~~
|
|
|
|
error: `or` is not a logical operator
|
|
--> $DIR/issue-54109-without-witness.rs:42:11
|
|
|
|
|
LL | if (a or b) {
|
|
| ^^
|
|
|
|
|
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
|
|
help: use `||` to perform logical disjunction
|
|
|
|
|
LL | if (a || b) {
|
|
| ~~
|
|
|
|
error: `and` is not a logical operator
|
|
--> $DIR/issue-54109-without-witness.rs:50:13
|
|
|
|
|
LL | while a and b {
|
|
| ^^^
|
|
|
|
|
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
|
|
help: use `&&` to perform logical conjunction
|
|
|
|
|
LL | while a && b {
|
|
| ~~
|
|
|
|
error: `or` is not a logical operator
|
|
--> $DIR/issue-54109-without-witness.rs:58:13
|
|
|
|
|
LL | while a or b {
|
|
| ^^
|
|
|
|
|
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
|
|
help: use `||` to perform logical disjunction
|
|
|
|
|
LL | while a || b {
|
|
| ~~
|
|
|
|
error: aborting due to 8 previous errors
|
|
|