rust/tests/ui/pattern/match-with-at-binding-8391.rs
2025-08-17 13:01:02 -04:00

11 lines
184 B
Rust

// https://github.com/rust-lang/rust/issues/8391
//@ run-pass
fn main() {
let x = match Some(1) {
ref _y @ Some(_) => 1,
None => 2,
};
assert_eq!(x, 1);
}