fork/rust

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

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

master
567 B15 linesraw
1error[E0382]: use of moved value
2  --> $DIR/move-in-pattern-mut-in-loop.rs:7:21
3   |
4LL |         if let Some(mut _x) = opt {}
5   |                     ^^^^^^ value moved here, in previous iteration of loop
6   |
7   = note: move occurs because value has type `&mut i32`, which does not implement the `Copy` trait
8help: borrow this binding in the pattern to avoid moving the value
9   |
10LL |         if let Some(ref mut _x) = opt {}
11   |                     +++
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0382`.