]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/map_err.stderr
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[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:22:32
3    |
4 LL |     println!("{:?}", x.map_err(|_| Errors::Ignored));
5    |                                ^^^
6    |
7    = help: consider storing the original error as a source in the new error, or silence this warning using an ignored identifier (`.map_err(|_foo| ...`)
8    = note: `-D clippy::map-err-ignore` implied by `-D warnings`
9
10 error: aborting due to previous error
11