blob: 6a591e6416c5d69f3554f300e96da2fb1e10a272 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
error[E0510]: cannot assign `*b` in match guard
--> $DIR/fake_borrows.rs:9:16
|
LL | match b {
| - value is immutable in match guard
LL | deref!(true) => {}
LL | _ if { *b = true; false } => {}
| ^^^^^^^^^ cannot assign
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0510`.
|