rust/tests/ui/did_you_mean/issue-54109-without-witness.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
2.2 KiB
Plaintext
Raw Normal View History

2020-07-02 00:32:12 -05:00
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
|
2022-09-15 09:39:16 -05:00
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
2020-07-02 00:32:12 -05:00
error: `and` is not a logical operator
--> $DIR/issue-54109-without-witness.rs:15:10
2020-07-02 00:32:12 -05:00
|
LL | if a and b {
| ^^^ help: use `&&` to perform logical conjunction
|
2022-09-15 09:39:16 -05:00
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
2020-07-02 00:32:12 -05:00
error: `or` is not a logical operator
--> $DIR/issue-54109-without-witness.rs:24:15
2020-07-02 00:32:12 -05:00
|
LL | let _ = a or b;
| ^^ help: use `||` to perform logical disjunction
|
2022-09-15 09:39:16 -05:00
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
2020-07-02 00:32:12 -05:00
error: `or` is not a logical operator
--> $DIR/issue-54109-without-witness.rs:26:10
2020-07-02 00:32:12 -05:00
|
LL | if a or b {
| ^^ help: use `||` to perform logical disjunction
|
2022-09-15 09:39:16 -05:00
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
2020-07-02 00:32:12 -05:00
error: `and` is not a logical operator
--> $DIR/issue-54109-without-witness.rs:34:11
2020-07-02 00:32:12 -05:00
|
LL | if (a and b) {
| ^^^ help: use `&&` to perform logical conjunction
|
2022-09-15 09:39:16 -05:00
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
2020-07-02 00:32:12 -05:00
error: `or` is not a logical operator
--> $DIR/issue-54109-without-witness.rs:42:11
2020-07-02 00:32:12 -05:00
|
LL | if (a or b) {
| ^^ help: use `||` to perform logical disjunction
|
2022-09-15 09:39:16 -05:00
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
2020-07-02 00:32:12 -05:00
error: `and` is not a logical operator
--> $DIR/issue-54109-without-witness.rs:50:13
2020-07-02 00:32:12 -05:00
|
LL | while a and b {
| ^^^ help: use `&&` to perform logical conjunction
|
2022-09-15 09:39:16 -05:00
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
2020-07-02 00:32:12 -05:00
error: `or` is not a logical operator
--> $DIR/issue-54109-without-witness.rs:58:13
2020-07-02 00:32:12 -05:00
|
LL | while a or b {
| ^^ help: use `||` to perform logical disjunction
|
2022-09-15 09:39:16 -05:00
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
2020-07-02 00:32:12 -05:00
error: aborting due to 8 previous errors
2020-07-02 00:32:12 -05:00