]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-62107-match-arm-scopes.rs
Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup
[rust.git] / src / test / 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 }