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 19:49:38 +00:00
//@ check-pass
2018-11-26 16:30:19 +00:00
const _: bool = false && false;
const _: bool = true && false;
const _: bool = {
2018-11-26 16:30:19 +00:00
let mut x = true && false;
x
};
const _: bool = {
2018-11-26 16:30:19 +00:00
let x = true && false;
x
};
2018-11-26 12:08:55 +00:00
fn main() {}