mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
25 lines
730 B
Plaintext
25 lines
730 B
Plaintext
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 };
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
help: wrap the expression in parentheses
|
|
|
|
|
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 };
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
help: wrap the expression in parentheses
|
|
|
|
|
LL | let true = (true || false) else { return };
|
|
| + +
|
|
|
|
error: aborting due to 2 previous errors
|
|
|