rust/tests/target/issue-5125/with_leading_and_inline_comments.rs
Yacin Tmimi 8b0b213cdd Prevent adding trailing whitespace when rewriting ast::Param
Fixes 5125

Previously, a newline was always added, even if the parameter name was
not preceded by any param attrs.

Now a newline is only added if there were param attrs.
2022-01-29 12:20:34 -06:00

8 lines
175 B
Rust

fn foo(
// Pre Comment
a: <u16 as intercom::type_system::ExternType<
intercom::type_system::AutomationTypeSystem,
>>::ForeignType, // Inline comment
) {
}