]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-62107-match-arm-scopes.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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 }