parent
655487b596
commit
5bf268d0b0
2 changed files with 12 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue