X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftools%2Fclippy%2Ftests%2Fui%2Fmap_err.stderr;h=37e87e64de28f1be6c43b29e5ac6f56f2e12afa3;hb=100c7935bdd8d384eb0e7a96adb668bfb1901a8a;hp=390d7ce2e4e7b0fa5a6c956929a72d6983838173;hpb=3f7ccb4cf59ba79a656f07179aac36e4580a8706;p=rust.git diff --git a/src/tools/clippy/tests/ui/map_err.stderr b/src/tools/clippy/tests/ui/map_err.stderr index 390d7ce2e4e..37e87e64de2 100644 --- a/src/tools/clippy/tests/ui/map_err.stderr +++ b/src/tools/clippy/tests/ui/map_err.stderr @@ -1,11 +1,11 @@ -error: `map_err(|_|...` ignores the original error +error: `map_err(|_|...` wildcard pattern discards the original error --> $DIR/map_err.rs:23:32 | LL | println!("{:?}", x.map_err(|_| Errors::Ignored)); | ^^^ | = note: `-D clippy::map-err-ignore` implied by `-D warnings` - = help: Consider wrapping the error in an enum variant + = help: consider storing the original error as a source in the new error, or silence this warning using an ignored identifier (`.map_err(|_foo| ...`) error: aborting due to previous error