]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const_short_circuit.rs
Auto merge of #64546 - weiznich:bugfix/rfc-2451-rerebalance-tests, r=nikomatsakis
[rust.git] / src / test / ui / consts / const_short_circuit.rs
1 const _: bool = false && false;
2 const _: bool = true && false;
3 const _: bool = {
4     let mut x = true && false;
5     //~^ ERROR new features like let bindings are not permitted
6     x
7 };
8 const _: bool = {
9     let x = true && false;
10     //~^ ERROR new features like let bindings are not permitted
11     x
12 };
13
14 fn main() {}