os-rust/tests/ui/consts/const_short_circuit.rs
2024-02-16 20:02:50 +00:00

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