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