summaryrefslogtreecommitdiffstats
path: root/tests/ui/let-else/let-else-bool-binop-init.fixed
blob: 20e558ca909cf0a14be3a01ee3407e017423e3d3 (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`
}