Confusing error message when trying to implement From<GenericLocalType<T>> for Option<T> #65247
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I have a local type:
and I want to
impl<T> From<BadOption<T>> for Option<T>
but the error message suggests thatT
isn't being used as the type parameter for a local typeReproduction: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=9abd2ab4860140be2859d4767fc027f8
Full error:
The text was updated successfully, but these errors were encountered: