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

x.into() not inferred in the presence of type bounds #13899

Closed
lnicola opened this issue Jan 6, 2023 · 1 comment
Closed

x.into() not inferred in the presence of type bounds #13899

lnicola opened this issue Jan 6, 2023 · 1 comment
Labels
A-ty type system / type inference / traits / method resolution C-bug Category: bug S-actionable Someone could pick this issue up and work on it right now

Comments

@lnicola
Copy link
Member

lnicola commented Jan 6, 2023

Probably a duplicate, but I can't find another issue:

struct S;

fn foo(s: impl Into<S>) {
    let s = s.into(); // {unknown}
}

This causes a good chunk of unknown types in analysis-stats/self.

@lnicola lnicola added A-ty type system / type inference / traits / method resolution S-actionable Someone could pick this issue up and work on it right now C-bug Category: bug labels Jan 6, 2023
@lowr
Copy link
Contributor

lowr commented Jan 6, 2023

I think this is #5514.

@lnicola lnicola closed this as completed Jan 6, 2023
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 C-bug Category: bug S-actionable Someone could pick this issue up and work on it right now
Projects
None yet
Development

No branches or pull requests

2 participants