fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
633 B20 linesraw
1error[E0507]: cannot move out of a shared reference
2  --> $DIR/option-content-move-from-tuple-match.rs:2:11
3   |
4LL |     match (a, b) {
5   |           ^^^^^^
6LL |
7LL |         (None, &c) => &c.unwrap(),
8   |                 -
9   |                 |
10   |                 data moved here
11   |                 move occurs because `c` has type `Option<String>`, which does not implement the `Copy` trait
12   |
13help: consider borrowing the pattern binding
14   |
15LL |         (None, &ref c) => &c.unwrap(),
16   |                 +++
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0507`.