]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/option-content-move-from-tuple-match.rs
Rollup merge of #106798 - scottmcm:signum-via-cmp, r=Mark-Simulacrum
[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() {}