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

Solve type of t.into() as U when T: Into<U> is the only Into bound for t: T #12302

Closed
p-avital opened this issue May 18, 2022 · 1 comment
Closed

Comments

@p-avital
Copy link

Hi,

In zenoh's source, a rather common pattern is the use of fn function<I: Into<Input>>(input: I) for functions that would typically take Input, to simplify user code.

I've noticed that despite input.into()'s type being unambiguous to rustc, rust-analyzer fails to resolve its type.

Is there a technical reason for this, or could it be that this just went unnoticed?

Thanks for all the good work :)

@jonas-schievink
Copy link
Contributor

This is a known bug: #5514

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants