Formatting
fn foo(x: //comment here
u32) {}
results in (on playground 1.8.0-nightly (2025-03-22 b48576b4db))
pub fn foo(x: //comment here u32
) {
}
I agree this is a remarkably weird place to put a comment, but it should at least not result in breaking compilation.