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

Inlay hint (type is displayed as unknown) do not work for .into() for generics bound to Into<..> #17776

Closed
xvbcfj opened this issue Aug 3, 2024 · 1 comment
Labels
C-bug Category: bug

Comments

@xvbcfj
Copy link

xvbcfj commented Aug 3, 2024

Screenshot 2024-08-03 at 12 23 41

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

rust-analyzer version: 0.3.2053-standalone (fd74511 2024-07-28)

rustc version: (eg. output of rustc -V)

rustc 1.82.0-nightly (8e86c9567 2024-08-01)

editor or extension: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable)

v0.3.2053

code snippet to reproduce:

fn test2<A>(str: A)
where
    A: Into<String>, // does not work
{
    let str = str.into();
    println!("{str}");
}
@xvbcfj xvbcfj added the C-bug Category: bug label Aug 3, 2024
@flodiebold
Copy link
Member

Duplicate of #5514

@flodiebold flodiebold marked this as a duplicate of #5514 Aug 3, 2024
@flodiebold flodiebold closed this as not planned Won't fix, can't repro, duplicate, stale Aug 3, 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