2019-12-03 03:19:58 -06:00
|
|
|
error: `and` is not a logical operator
|
|
|
|
--> $DIR/issue-54109-and_instead_of_ampersands.rs:7:15
|
|
|
|
|
|
|
|
|
LL | let _ = a and b;
|
2019-12-04 04:27:11 -06:00
|
|
|
| ^^^ help: use `&&` to perform logical conjunction
|
2019-12-03 03:19:58 -06:00
|
|
|
|
|
2022-09-15 09:39:16 -05:00
|
|
|
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
|
2019-12-03 03:19:58 -06:00
|
|
|
|
|
|
|
error: `and` is not a logical operator
|
2020-08-17 21:15:51 -05:00
|
|
|
--> $DIR/issue-54109-and_instead_of_ampersands.rs:9:10
|
2018-09-13 07:54:25 -05:00
|
|
|
|
|
|
|
|
LL | if a and b {
|
2019-12-04 04:27:11 -06:00
|
|
|
| ^^^ help: use `&&` to perform logical conjunction
|
2019-12-03 03:19:58 -06:00
|
|
|
|
|
2022-09-15 09:39:16 -05:00
|
|
|
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
|
2019-12-03 03:19:58 -06:00
|
|
|
|
|
|
|
error: `or` is not a logical operator
|
2020-08-17 21:15:51 -05:00
|
|
|
--> $DIR/issue-54109-and_instead_of_ampersands.rs:20:15
|
2019-12-03 03:19:58 -06:00
|
|
|
|
|
|
|
|
LL | let _ = a or b;
|
2019-12-04 04:27:11 -06:00
|
|
|
| ^^ help: use `||` to perform logical disjunction
|
2019-12-03 03:19:58 -06:00
|
|
|
|
|
2022-09-15 09:39:16 -05:00
|
|
|
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
|
2018-09-13 07:54:25 -05:00
|
|
|
|
2019-12-03 03:19:58 -06:00
|
|
|
error: `or` is not a logical operator
|
2020-08-17 21:15:51 -05:00
|
|
|
--> $DIR/issue-54109-and_instead_of_ampersands.rs:22:10
|
2018-09-13 07:54:25 -05:00
|
|
|
|
|
|
|
|
LL | if a or b {
|
2019-12-04 04:27:11 -06:00
|
|
|
| ^^ help: use `||` to perform logical disjunction
|
2019-12-03 03:19:58 -06:00
|
|
|
|
|
2022-09-15 09:39:16 -05:00
|
|
|
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
|
2018-09-13 07:54:25 -05:00
|
|
|
|
2019-12-03 03:19:58 -06:00
|
|
|
error: `and` is not a logical operator
|
2020-08-17 21:15:51 -05:00
|
|
|
--> $DIR/issue-54109-and_instead_of_ampersands.rs:30:11
|
2018-09-13 07:54:25 -05:00
|
|
|
|
|
|
|
|
LL | if (a and b) {
|
2019-12-04 04:27:11 -06:00
|
|
|
| ^^^ help: use `&&` to perform logical conjunction
|
2019-12-03 03:19:58 -06:00
|
|
|
|
|
2022-09-15 09:39:16 -05:00
|
|
|
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
|
2018-09-13 07:54:25 -05:00
|
|
|
|
2019-12-03 03:19:58 -06:00
|
|
|
error: `or` is not a logical operator
|
2020-08-17 21:15:51 -05:00
|
|
|
--> $DIR/issue-54109-and_instead_of_ampersands.rs:38:11
|
2018-09-13 07:54:25 -05:00
|
|
|
|
|
|
|
|
LL | if (a or b) {
|
2019-12-04 04:27:11 -06:00
|
|
|
| ^^ help: use `||` to perform logical disjunction
|
2019-12-03 03:19:58 -06:00
|
|
|
|
|
2022-09-15 09:39:16 -05:00
|
|
|
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
|
2018-09-13 07:54:25 -05:00
|
|
|
|
2019-12-03 03:19:58 -06:00
|
|
|
error: `and` is not a logical operator
|
2020-08-17 21:15:51 -05:00
|
|
|
--> $DIR/issue-54109-and_instead_of_ampersands.rs:46:13
|
2018-09-13 12:51:29 -05:00
|
|
|
|
|
|
|
|
LL | while a and b {
|
2019-12-04 04:27:11 -06:00
|
|
|
| ^^^ help: use `&&` to perform logical conjunction
|
2019-12-03 03:19:58 -06:00
|
|
|
|
|
2022-09-15 09:39:16 -05:00
|
|
|
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
|
2018-09-13 12:51:29 -05:00
|
|
|
|
2019-12-03 03:19:58 -06:00
|
|
|
error: `or` is not a logical operator
|
2020-08-17 21:15:51 -05:00
|
|
|
--> $DIR/issue-54109-and_instead_of_ampersands.rs:54:13
|
2018-09-13 12:51:29 -05:00
|
|
|
|
|
|
|
|
LL | while a or b {
|
2019-12-04 04:27:11 -06:00
|
|
|
| ^^ help: use `||` to perform logical disjunction
|
2019-12-03 03:19:58 -06:00
|
|
|
|
|
2022-09-15 09:39:16 -05:00
|
|
|
= note: unlike in e.g., Python and PHP, `&&` and `||` are used for logical operators
|
2019-12-03 03:19:58 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2020-08-17 21:15:51 -05:00
|
|
|
--> $DIR/issue-54109-and_instead_of_ampersands.rs:13:33
|
2019-12-03 03:19:58 -06:00
|
|
|
|
|
|
|
|
LL | let _recovery_witness: () = 0;
|
|
|
|
| -- ^ expected `()`, found integer
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2018-09-13 12:51:29 -05:00
|
|
|
|
2020-08-17 21:15:51 -05:00
|
|
|
error: aborting due to 9 previous errors
|
2018-09-13 12:51:29 -05:00
|
|
|
|
2019-12-03 03:19:58 -06:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|