]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/map_err.stderr
Merge commit '1fcc74cc9e03bc91eaa80ecf92976b0b14b3aeb6' into clippyup
[rust.git] / src / tools / clippy / tests / ui / map_err.stderr
index 390d7ce2e4e7b0fa5a6c956929a72d6983838173..37e87e64de28f1be6c43b29e5ac6f56f2e12afa3 100644 (file)
@@ -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