]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-62107-match-arm-scopes.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / issue-62107-match-arm-scopes.rs
1 fn main() {
2     let e: i32;
3     match e {
4         //~^ ERROR E0381
5         ref u if true => {}
6         ref v if true => {
7             let tx = 0;
8             &tx;
9         }
10         _ => (),
11     }
12 }