rust/tests/ui/consts/const_short_circuit.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
205 B
Rust
Raw Normal View History

2020-05-21 14:49:38 -05:00
//@ check-pass
2018-11-26 10:30:19 -06:00
const _: bool = false && false;
const _: bool = true && false;
const _: bool = {
2018-11-26 10:30:19 -06:00
let mut x = true && false;
x
};
const _: bool = {
2018-11-26 10:30:19 -06:00
let x = true && false;
x
};
2018-11-26 06:08:55 -06:00
fn main() {}