rust/src/test/ui/borrowck/issue-62107-match-arm-scopes.rs

13 lines
231 B
Rust
Raw Normal View History

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