You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pubfntest(s:implInto<String>) -> String{let s = s.into();// type of s is not known to the rust analyzer here// try typing `s.` and you will see no completionslet s = s.to_string();// here rust analyzer knows that s is a String
s
}
It's not critical but a tiny bit annoying.
The text was updated successfully, but these errors were encountered:
When using
Into<String>
paired with.to_string()
RA fails to infer the type of the variable between the calls.rust-analyzer version:
rustc version: (eg. output of
rustc -V
)rustc 1.80.0 (051478957 2024-07-21)
editor or extension: VSCode
code snippet to reproduce:
It's not critical but a tiny bit annoying.
The text was updated successfully, but these errors were encountered: