enhance borrowck-pat-by-copy-bindings-in-at
This commit is contained in:
parent
427b1c33e9
commit
48f2766522
|
@ -43,4 +43,11 @@ fn main() {
|
|||
drop(a);
|
||||
}
|
||||
}
|
||||
|
||||
match Ok(mk_c()) {
|
||||
Ok(ref a @ b) | Err(b @ ref a) => {
|
||||
let _: &C = a;
|
||||
let _: C = b;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue