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
204 B
Rust
Raw Normal View History

2020-05-21 12:49:38 -07:00
// check-pass
2018-11-26 17:30:19 +01:00
const _: bool = false && false;
const _: bool = true && false;
const _: bool = {
2018-11-26 17:30:19 +01:00
let mut x = true && false;
x
};
const _: bool = {
2018-11-26 17:30:19 +01:00
let x = true && false;
x
};
2018-11-26 13:08:55 +01:00
fn main() {}