RPITIT seems to assume return type is the type parameter when it looks the same #102301
Labels
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
F-return_position_impl_trait_in_trait
`#![feature(return_position_impl_trait_in_trait)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected this to compile without error, since it is implementing the trait correctly.
Instead, the following error was shown:
It suggests replacing the code with the code I already have, which doesn't make much sense, as well as complaining that two things which appear identical are not.
Playground.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: