Closed
Description
It would be really nice if the mismatched type diagnostic would work for as_deref
. Currently, trying to use Option<Vec<String>>
where Option<&[String]>
is expected doesn't give a method call suggestion the way one gets a suggestion to borrow when trying to use Vec<String>
where &[String]
is expected.
= note: expected enum `std::option::Option<&[std::string::String]>`
found enum `std::option::Option<Vec<std::string::String>>`
^ no suggestion