]> git.lizzy.rs Git - rust.git/blob - tests/ui/option_map_unit_fn_unfixable.stderr
iterate List by value
[rust.git] / tests / ui / option_map_unit_fn_unfixable.stderr
1 error[E0425]: cannot find value `x` in this scope
2   --> $DIR/option_map_unit_fn_unfixable.rs:17:5
3    |
4 LL |     x.field.map(|value| { do_nothing(value); do_nothing(value) });
5    |     ^ not found in this scope
6
7 error[E0425]: cannot find value `x` in this scope
8   --> $DIR/option_map_unit_fn_unfixable.rs:19:5
9    |
10 LL |     x.field.map(|value| if value > 0 { do_nothing(value); do_nothing(value) });
11    |     ^ not found in this scope
12
13 error[E0425]: cannot find value `x` in this scope
14   --> $DIR/option_map_unit_fn_unfixable.rs:23:5
15    |
16 LL |     x.field.map(|value| {
17    |     ^ not found in this scope
18
19 error[E0425]: cannot find value `x` in this scope
20   --> $DIR/option_map_unit_fn_unfixable.rs:27:5
21    |
22 LL |     x.field.map(|value| { do_nothing(value); do_nothing(value); });
23    |     ^ not found in this scope
24
25 error: aborting due to 4 previous errors
26
27 For more information about this error, try `rustc --explain E0425`.