We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
impl Into
In both these examples, the type of y is unable to be inferred by rust-analyzer:
y
fn a(x: impl Into<String>) { let y = x.into(); y.to_ascii_lowercase(); } fn b<T>(x: T) where T: Into<String>, { let y = x.into(); y.to_ascii_lowercase(); }
However, interestingly enough, if the following is defined in the file (to shadow built in Into) it works:
Into
pub trait Into<T>: Sized { fn into(self) -> T; }
On: rust-analyzer version: 8232804 2021-07-30 nightly & rustc 1.53.0 (53cb7b09b 2021-06-17)
The text was updated successfully, but these errors were encountered:
Duplicate of #5514.
Sorry, something went wrong.
No branches or pull requests
In both these examples, the type of
y
is unable to be inferred by rust-analyzer:However, interestingly enough, if the following is defined in the file (to shadow built in
Into
) it works:On: rust-analyzer version: 8232804 2021-07-30 nightly & rustc 1.53.0 (53cb7b09b 2021-06-17)
The text was updated successfully, but these errors were encountered: