fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
494 B14 linesraw
1error[E0510]: cannot mutably borrow `x` in match guard
2  --> $DIR/issue-27282-mutate-before-diverging-arm-1.rs:23:14
3   |
4LL |     match x {
5   |           - value is immutable in match guard
6...
7LL |             (|| { *x = None; drop(force_fn_once); })();
8   |              ^^    - borrow occurs due to use of `x` in closure
9   |              |
10   |              cannot mutably borrow
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0510`.