about summary refs log tree commit diff
path: root/tests/ui/let-else/let-else-bool-binop-init.fixed
blob: 0c8a4e45eb5c5a91088dda972f310d17ba77343f (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`
}