Added test to make sure ignoring the error with a named wildcard value works

This commit is contained in:
Ricky 2020-12-03 19:41:44 -05:00
parent 4bc33d3722
commit 5f821fbcf1

View file

@ -22,5 +22,9 @@ fn main() -> Result<(), Errors> {
println!("{:?}", x.map_err(|_| Errors::Ignored));
// Should not warn you because you explicitly ignore the parameter
// using a named wildcard value
println!("{:?}", x.map_err(|_foo| Errors::Ignored));
Ok(())
}