2021-08-02 00:18:50 +00:00
|
|
|
error: a `&&` expression cannot be directly assigned in `let...else`
|
|
|
|
--> $DIR/let-else-bool-binop-init.rs:6:16
|
|
|
|
|
|
|
|
|
LL | let true = true && false else { return };
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-17 10:04:01 +00:00
|
|
|
help: wrap the expression in parentheses
|
2021-08-02 00:18:50 +00:00
|
|
|
|
|
|
|
|
LL | let true = (true && false) else { return };
|
|
|
|
| + +
|
|
|
|
|
|
|
|
error: a `||` expression cannot be directly assigned in `let...else`
|
|
|
|
--> $DIR/let-else-bool-binop-init.rs:7:16
|
|
|
|
|
|
|
|
|
LL | let true = true || false else { return };
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-17 10:04:01 +00:00
|
|
|
help: wrap the expression in parentheses
|
2021-08-02 00:18:50 +00:00
|
|
|
|
|
|
|
|
LL | let true = (true || false) else { return };
|
|
|
|
| + +
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|