about summary refs log tree commit diff
path: root/tests/ui/issues/issue-30891.rs
blob: 25b7165d0116735a2a81705459c0bd7c375da314 (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);
}