Skip to content

Incorrect this trait takes 1 generic argument but 0 generic arguments were supplied #19669

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

Closed
Veykril opened this issue Apr 23, 2025 · 2 comments · Fixed by #19675
Closed

Incorrect this trait takes 1 generic argument but 0 generic arguments were supplied #19669

Veykril opened this issue Apr 23, 2025 · 2 comments · Fixed by #19675
Labels
A-diagnostics diagnostics / error reporting Broken Window Bugs / technical debt to be addressed immediately C-bug Category: bug

Comments

@Veykril
Copy link
Member

Veykril commented Apr 23, 2025

In

    let _: Option<i32> = Some(0).map(Into::into);

rust-analyzer complains about the lacking generic argument for Into even though that is inferred

@RaulTrombin

This comment has been minimized.

@Veykril
Copy link
Member Author

Veykril commented Apr 23, 2025

cc @ChayimFriedman2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics diagnostics / error reporting Broken Window Bugs / technical debt to be addressed immediately C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants