]> git.lizzy.rs Git - rust.git/blob - tests/ui/map_err.stderr
8193f7cfb8e02993f36d8b66808f04eeb4c442e2
[rust.git] / tests / ui / map_err.stderr
1 error: `map_err(|_|...` ignores 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 wrapping the error in an enum variant for more error context, or using a named wildcard (`.map_err(|_ignored| ...`) to intentionally ignore the error
9
10 error: aborting due to previous error
11