rust/tests/ui/consts/const_short_circuit.rs
2023-01-11 09:32:08 +00:00

15 lines
204 B
Rust

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