fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
545 B13 linesraw
1error[E0507]: cannot move out of `s.0` which is behind a shared reference
2  --> $DIR/access-mode-in-closures.rs:8:15
3   |
4LL |         match *s { S(v) => v }
5   |               ^^     -
6   |               |      |
7   |               |      data moved here
8   |               |      move occurs because `v` has type `std::vec::Vec<isize>`, which does not implement the `Copy` trait
9   |               help: consider borrowing here: `&*s`
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0507`.