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
Please note the trailing whitespace after the let a= line
fnmain(){let a =
// asasddasas iftrue{1.0};}
output:
⮞ cargo fmt
error[internal]: left behind trailing whitespace
--> /tmp/foo/src/main.rs:2:2:11
|
2 | let a =
| ^
|
warning: rustfmt has failed to format. See previous 1 errors.
The text was updated successfully, but these errors were encountered:
Thanks for the report @lesurp. I forget which version of rustfmt contains the fix for this (I want to say 1.4.6 or 1.4.7), but it has already been fixed.
If you try your snippet with the latest nightly version of rustfmt (1.4.9) you'll see the snippet correctly formatted without error
Oops, I was wrong sorry (my editor was trimming the trailing whitespace). I can reproduce this with the latest 1.4.9
No trailing whitespace
output: exact same (the
1.0
line is not indentedWith trailing whitespace:
Please note the trailing whitespace after the
let a=
lineoutput:
The text was updated successfully, but these errors were encountered: