]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/map_err.stderr
Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup
[rust.git] / src / tools / clippy / tests / ui / map_err.stderr
1 error: `map_err(|_|...` wildcard pattern discards the original error
2   --> $DIR/map_err.rs:23:32
3    |
4 LL |     println!("{:?}", x.map_err(|_| Errors::Ignored));
5    |                                ^^^
6    |
7    = note: `-D clippy::map-err-ignore` implied by `-D warnings`
8    = help: Consider storing the original error as a source in the new error, or silence this warning using an ignored identifier (`.map_err(|_foo| ...`)
9
10 error: aborting due to previous error
11