mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 01:25:54 +00:00
11 lines
380 B
Plaintext
11 lines
380 B
Plaintext
error: `map_err` has thrown away the original error
|
|
--> $DIR/map_err.rs:21:32
|
|
|
|
|
LL | println!("{:?}", x.map_err(|_| Errors::Ignored));
|
|
| ^^^ help: Allow the error enum to encapsulate the original error: `|e| Errors::Ignored(e)`
|
|
|
|
|
= note: `-D clippy::map-err-ignore` implied by `-D warnings`
|
|
|
|
error: aborting due to previous error
|
|
|