2019-09-25 10:48:09 -05:00
|
|
|
error[E0425]: cannot find value `x` in this scope
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/option_map_unit_fn_unfixable.rs:17:5
|
2019-09-25 10:48:09 -05:00
|
|
|
|
|
|
|
|
LL | x.field.map(|value| { do_nothing(value); do_nothing(value) });
|
|
|
|
| ^ not found in this scope
|
|
|
|
|
|
|
|
error[E0425]: cannot find value `x` in this scope
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/option_map_unit_fn_unfixable.rs:19:5
|
2019-09-25 10:48:09 -05:00
|
|
|
|
|
|
|
|
LL | x.field.map(|value| if value > 0 { do_nothing(value); do_nothing(value) });
|
|
|
|
| ^ not found in this scope
|
|
|
|
|
|
|
|
error[E0425]: cannot find value `x` in this scope
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/option_map_unit_fn_unfixable.rs:23:5
|
2019-09-25 10:48:09 -05:00
|
|
|
|
|
|
|
|
LL | x.field.map(|value| {
|
|
|
|
| ^ not found in this scope
|
|
|
|
|
|
|
|
error[E0425]: cannot find value `x` in this scope
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/option_map_unit_fn_unfixable.rs:27:5
|
2019-09-25 10:48:09 -05:00
|
|
|
|
|
|
|
|
LL | x.field.map(|value| { do_nothing(value); do_nothing(value); });
|
|
|
|
| ^ not found in this scope
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0425`.
|