summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-12033.rs
blob: 9dc7573c9d362e39ab4a62c303fbb30f50105b23 (plain)
1
2
3
4
5
6
7
// run-pass
use std::cell::RefCell;

fn main() {
    let x = RefCell::new(0);
    if *x.borrow() == 0 {} else {}
}