-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Ampersand insert on auto complete #13111
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
Comments
Fixed in #13092 |
Surprising that |
{
$crate::io::_print(std::fmt::Arguments::new_v1(
&[],
&[std::fmt::ArgumentV1::new(&(result), std::fmt::Display::fmt)],
));
} I think the parentheses might be tripping the expected type up? No we seem to just show |
Can you actually reproduce it though? I don't get the |
I tried that, but still didn't see |
I checked out nightly version, It doesn't suggest me `&result. So maybe It could be closed I guess. 😀 |
rust-analyzer version: rust-analyzer version: 0.3.1178-standalone (a670ff8 2022-08-21)
rustc version: rustc 1.63.0 (4b91a6ea7 2022-08-08)
&
on auto complete.Code example
If I try to auto complete the
result
on line 7 like below photo,It adds
&
to line 4 like below codeThank you.
The text was updated successfully, but these errors were encountered: