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

Can't infer Impl Into<T> types #6903

Closed
matklad opened this issue Dec 16, 2020 · 2 comments
Closed

Can't infer Impl Into<T> types #6903

matklad opened this issue Dec 16, 2020 · 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

@matklad
Copy link
Member

matklad commented Dec 16, 2020

fn foo(x: impl Into<i32>) {
    let x = x.into(); // no type hint here
    x.abs(); // unresolved method here
}

THis works with rustc though.

@flodiebold is this a dupe of some super-complicated issue? From the look of it, the example seems pretty obvious...

@matklad matklad 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 Dec 16, 2020
@flodiebold
Copy link
Member

flodiebold commented Dec 16, 2020

I think that's rust-lang/chalk#584 / #5514.

@matklad
Copy link
Member Author

matklad commented Dec 16, 2020

indeed! dupe of #5514

@matklad matklad closed this as completed Dec 16, 2020
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

2 participants