]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/map_err.stderr
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[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