summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-30891.rs
blob: 30f55e0bd640c6e93d74ed5b64c4010661983894 (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass
const ERROR_CONST: bool = true;

fn get() -> bool {
    false || ERROR_CONST
}

pub fn main() {
    assert_eq!(get(), true);
}