Closes #8391
This commit is contained in:
Edward Wang 2014-05-13 13:20:52 +08:00 committed by Alex Crichton
parent 655487b596
commit 5bf268d0b0
2 changed files with 12 additions and 3 deletions

View file

@ -9,8 +9,9 @@
// except according to those terms.
fn main() {
let _x = match Some(1) {
_y @ Some(_) => 1,
let x = match Some(1) {
ref _y @ Some(_) => 1,
None => 2,
};
assert_eq!(x, 1);
}