summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const_short_circuit.rs
blob: 6403fbb17dd58ded8f5781992effcee065ba970a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// check-pass

const _: bool = false && false;
const _: bool = true && false;
const _: bool = {
    let mut x = true && false;
    x
};
const _: bool = {
    let x = true && false;
    x
};

fn main() {}