mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 10:19:00 +00:00
9 lines
273 B
Plaintext
9 lines
273 B
Plaintext
//@ run-rustfix
|
|
|
|
|
|
|
|
fn main() {
|
|
let true = (true && false) else { return }; //~ ERROR a `&&` expression cannot be directly assigned in `let...else`
|
|
let true = (true || false) else { return }; //~ ERROR a `||` expression cannot be directly assigned in `let...else`
|
|
}
|