rust/tests/ui/borrowck/issue-62107-match-arm-scopes.rs
2023-10-24 15:30:17 +00:00

13 lines
198 B
Rust

fn main() {
let e: i32;
match e {
ref u if true => {}
//~^ ERROR E0381
ref v if true => {
let tx = 0;
&tx;
}
_ => (),
}
}