summary refs log tree commit diff
path: root/src/test/ui/consts/const_short_circuit.rs
blob: 87b14a1117805a6f985eef716664e959219fc86a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const _: bool = false && false;
const _: bool = true && false;
const _: bool = {
    let mut x = true && false;
    //~^ ERROR new features like let bindings are not permitted
    x
};
const _: bool = {
    let x = true && false;
    //~^ ERROR new features like let bindings are not permitted
    x
};

fn main() {}