2015-04-28 08:56:01 +00: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 09:57:16 +00:00
|
|
|
// Newline comment
|
2015-04-28 08:56:01 +00:00
|
|
|
d: ddddddddddddd,
|
2015-04-28 09:57:16 +00:00
|
|
|
// A multi line comment
|
|
|
|
// between args.
|
2015-04-28 08:56:01 +00:00
|
|
|
e: eeeeeeeeeeeee /* comment before paren*/)
|
|
|
|
-> bar
|
|
|
|
where F: Foo, // COmment after where clause
|
|
|
|
G: Goo /* final comment */
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar<F /* comment on F */, G /* comment on G */>() {}
|
|
|
|
|
|
|
|
fn baz() -> Baz /* Comment after return type */ {
|
|
|
|
}
|