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

The type inference fails when using Into #18487

Closed
lh123 opened this issue Nov 7, 2024 · 1 comment
Closed

The type inference fails when using Into #18487

lh123 opened this issue Nov 7, 2024 · 1 comment
Labels
C-bug Category: bug

Comments

@lh123
Copy link
Contributor

lh123 commented Nov 7, 2024

rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)

rustc version: rustc 1.81.0 (eeb90cda1 2024-09-04)

editor or extension: VSCode

code snippet to reproduce:

// add your code here
fn test<T: Into<String>>(t: T) {
    let v = t.into();
    println!("{v}");
}

Image

@lh123 lh123 added the C-bug Category: bug label Nov 7, 2024
@lnicola
Copy link
Member

lnicola commented Nov 7, 2024

Duplicate of #5514

@lnicola lnicola closed this as completed Nov 7, 2024
@lnicola lnicola marked this as a duplicate of #5514 Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants