blob: f55dd523f130f7878683a8d24ceaeaeb9ba92362 (
plain)
1
2
3
4
5
6
7
8
9
|
error[E0302]: cannot assign in a pattern guard
--> $DIR/E0302.rs:14:21
|
LL | option if { option = None; false } => { }, //~ ERROR E0302
| ^^^^^^^^^^^^^ assignment in pattern guard
error: aborting due to previous error
For more information about this error, try `rustc --explain E0302`.
|