1 error[E0425]: cannot find value `x` in this scope
2 --> $DIR/option_map_unit_fn_unfixable.rs:17:5
4 LL | x.field.map(|value| { do_nothing(value); do_nothing(value) });
5 | ^ not found in this scope
7 error[E0425]: cannot find value `x` in this scope
8 --> $DIR/option_map_unit_fn_unfixable.rs:19:5
10 LL | x.field.map(|value| if value > 0 { do_nothing(value); do_nothing(value) });
11 | ^ not found in this scope
13 error[E0425]: cannot find value `x` in this scope
14 --> $DIR/option_map_unit_fn_unfixable.rs:23:5
16 LL | x.field.map(|value| {
17 | ^ not found in this scope
19 error[E0425]: cannot find value `x` in this scope
20 --> $DIR/option_map_unit_fn_unfixable.rs:27:5
22 LL | x.field.map(|value| { do_nothing(value); do_nothing(value); });
23 | ^ not found in this scope
25 error: aborting due to 4 previous errors
27 For more information about this error, try `rustc --explain E0425`.