summary refs log tree commit diff
path: root/src/test/ui/consts/const_short_circuit.rs
blob: 1e7b7ed3193557a52dbacef980517bf52c90e839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![feature(underscore_const_names)]

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() {}