mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 17:53:56 +00:00
3c308b86c8
Stablized in rust-lang/rust#65355
28 lines
927 B
Plaintext
28 lines
927 B
Plaintext
error[E0425]: cannot find value `x` in this scope
|
|
--> $DIR/result_map_unit_fn_unfixable.rs:16:5
|
|
|
|
|
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
|
|
--> $DIR/result_map_unit_fn_unfixable.rs:18:5
|
|
|
|
|
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
|
|
--> $DIR/result_map_unit_fn_unfixable.rs:22:5
|
|
|
|
|
LL | x.field.map(|value| {
|
|
| ^ not found in this scope
|
|
|
|
error[E0425]: cannot find value `x` in this scope
|
|
--> $DIR/result_map_unit_fn_unfixable.rs:26:5
|
|
|
|
|
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`.
|