rust/tests/target/issue-5125/attributes_in_formal_fuction_parameter.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

7 lines
148 B
Rust

fn foo(
#[unused] a: <u16 as intercom::type_system::ExternType<
intercom::type_system::AutomationTypeSystem,
>>::ForeignType,
) {
}