Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inlay hints for function that returns trait type generic #8816

Closed
karto opened this issue May 12, 2021 · 2 comments
Closed

Inlay hints for function that returns trait type generic #8816

karto opened this issue May 12, 2021 · 2 comments
Labels
A-ty type system / type inference / traits / method resolution S-actionable Someone could pick this issue up and work on it right now

Comments

@karto
Copy link

karto commented May 12, 2021

My VSCode does not show type hints (and the wrong hint) when a function returns a generics from a trait type.

With associated_types it shows unknown
See the third last line
inlay_hint_associated_types
inlay_hint_associated_types.rs.txt

With feature(generic_associated_types) it shows Foo
See the third last line
inlay_hint_generic_associated_types
inlay_hint_generic_associated_types.rs.txt

@Veykril Veykril added A-ty type system / type inference / traits / method resolution S-actionable Someone could pick this issue up and work on it right now labels May 12, 2021
@iDawer
Copy link
Contributor

iDawer commented Apr 27, 2022

The latest r-a seems ok at the first example.
The second is related to #9673

@Veykril
Copy link
Member

Veykril commented Oct 29, 2022

This works now

@Veykril Veykril closed this as completed Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ty type system / type inference / traits / method resolution S-actionable Someone could pick this issue up and work on it right now
Projects
None yet
Development

No branches or pull requests

3 participants