summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/issue-62107-match-arm-scopes.rs
blob: 93ce34d2fe535e4364c1564212faf23803605cb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    let e: i32;
    match e {
        //~^ ERROR E0381
        ref u if true => {}
        ref v if true => {
            let tx = 0;
            &tx;
        }
        _ => (),
    }
}