]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/option-content-move-from-tuple-match.rs
Rollup merge of #106805 - madsravn:master, r=compiler-errors
[rust.git] / tests / ui / suggestions / option-content-move-from-tuple-match.rs
1 fn foo(a: &Option<String>, b: &Option<String>) {
2     match (a, b) {
3         //~^ ERROR cannot move out of a shared reference
4         (None, &c) => &c.unwrap(),
5         (&Some(ref c), _) => c,
6     };
7 }
8
9 fn main() {}