// Test comments on functions are preserved. // Comment on foo. fn foo( a: aaaaaaaaaaaaa, // A comment b: bbbbbbbbbbbbb, // a second comment c: ccccccccccccc, // Newline comment d: ddddddddddddd, // A multi line comment // between args. e: eeeeeeeeeeeee, /* comment before paren */ ) -> bar where F: Foo, // COmment after where-clause G: Goo, // final comment { } fn bar() {} fn baz() -> Baz /* Comment after return type */ {} fn some_fn() where T: Eq, // some comment { } fn issue458(a: &str, f: F) // comment1 where // comment2 F: FnOnce(&str) -> bool, { f(a); () }