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
fnhello(){let _slice = &[// First item0x0001,// Second item0x0002,];two_arg_fn(// First arg1,// Second arg2,);}fntwo_arg_fn(_x:u32,_y:u32){}
Output:
fnhello(){let _slice = &[// First item0x0001,// Second item0x0002,];two_arg_fn(// First arg1,// Second arg2,);}fntwo_arg_fn(_x:u32,_y:u32){}
Here the intent was to have a comment associated with the element on the following line, but rustfmt confusingly turned the comment for the second element into an end-of-line comment for the first element.
(playground link)
Input:
Output:
Here the intent was to have a comment associated with the element on the following line, but rustfmt confusingly turned the comment for the second element into an end-of-line comment for the first element.
The text was updated successfully, but these errors were encountered: