rust/tests/ui/binding/match-with-at-binding-8391.rs
2025-08-27 15:06:05 -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);
}