rust/tests/ui/map_err.stderr

11 lines
380 B
Text
Raw Normal View History

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