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