blob: 7f22d81360b34b6f447095e609c75b8d6a8acc6b (
plain)
1
2
3
4
5
6
7
8
9
|
fn foo(a: &Option<String>, b: &Option<String>) {
match (a, b) {
//~^ ERROR cannot move out of a shared reference
(None, &c) => &c.unwrap(),
(&Some(ref c), _) => c,
};
}
fn main() {}
|