fork/rust

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

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

master
954 B19 linesraw
1error[E0507]: cannot move out of `v` in pattern guard
2  --> $DIR/rfc-reject-double-move-across-arms.rs:7:36
3   |
4LL |         VecWrapper::A(v) if { drop(v); false } => 1,
5   |                                    ^ move occurs because `v` has type `Vec<i32>`, which does not implement the `Copy` trait
6   |
7   = note: variables bound in patterns cannot be moved from until after the end of the pattern guard
8
9error[E0507]: cannot move out of `v` in pattern guard
10  --> $DIR/rfc-reject-double-move-across-arms.rs:15:51
11   |
12LL |         VecWrapper::A(v) if let Some(()) = { drop(v); None } => 1,
13   |                                                   ^ move occurs because `v` has type `Vec<i32>`, which does not implement the `Copy` trait
14   |
15   = note: variables bound in patterns cannot be moved from until after the end of the pattern guard
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0507`.