2015-04-28 03:56:01 -05:00
|
|
|
// Test comments on functions are preserved.
|
|
|
|
|
|
|
|
// Comment on foo.
|
|
|
|
fn foo<F, G>(a: aaaaaaaaaaaaa, // A comment
|
|
|
|
b: bbbbbbbbbbbbb, /* a second comment */
|
|
|
|
c: ccccccccccccc,
|
2015-04-28 04:57:16 -05:00
|
|
|
// Newline comment
|
2015-04-28 03:56:01 -05:00
|
|
|
d: ddddddddddddd,
|
2015-04-28 04:57:16 -05:00
|
|
|
// A multi line comment
|
|
|
|
// between args.
|
2015-04-28 03:56:01 -05:00
|
|
|
e: eeeeeeeeeeeee /* comment before paren*/)
|
2015-04-28 16:53:33 -05:00
|
|
|
-> bar
|
2015-04-28 03:56:01 -05:00
|
|
|
where F: Foo, // COmment after where clause
|
|
|
|
G: Goo /* final comment */
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-04-28 22:00:58 -05:00
|
|
|
fn bar<F /* comment on F */, G /* comment on G */>() {
|
|
|
|
}
|
2015-04-28 03:56:01 -05:00
|
|
|
|
|
|
|
fn baz() -> Baz /* Comment after return type */ {
|
|
|
|
}
|