]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-62107-match-arm-scopes.rs
Auto merge of #87284 - Aaron1011:remove-paren-special, r=petrochenkov
[rust.git] / src / test / ui / borrowck / issue-62107-match-arm-scopes.rs
1 fn main() {
2     let e: i32;
3     match e {
4         //~^ ERROR use of possibly-uninitialized variable
5         ref u if true => {}
6         ref v if true => {
7             let tx = 0;
8             &tx;
9         }
10         _ => (),
11     }
12 }