summaryrefslogtreecommitdiffstats
path: root/tests/ui/let-else/let-else-bool-binop-init.rs
blob: f88179a940b5dee46a97cf99a66512411cc73d30 (plain)
1
2
3
4
5
6
7
8
// 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`
}