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
The accidental omission of a closing paren, as in: println!("answer: {}", a_func();
causes Rustfmt to insert two closing brackets, obscuring the actual error.
Describe the bug
The accidental omission of a closing paren, as in:
println!("answer: {}", a_func();
causes Rustfmt to insert two closing brackets, obscuring the actual error.
To Reproduce
create main.rs
run rustfmt (in my case implicitly in VS Code with the format on save capability). Result is:
This results in the following errors (obscuring the actual error):
Expected behavior
Don't insert closing brackets, so the missing closing paren is reported as the actual error.
Meta
The text was updated successfully, but these errors were encountered: