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
|
2015-06-23 13:58:58 +00:00
|
|
|
b: bbbbbbbbbbbbb, // a second comment
|
2015-04-28 08:56:01 +00:00
|
|
|
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-06-23 13:58:58 +00:00
|
|
|
e: eeeeeeeeeeeee /* comment before paren */)
|
2015-04-28 21:53:33 +00:00
|
|
|
-> bar
|
2015-04-28 08:56:01 +00:00
|
|
|
where F: Foo, // COmment after where clause
|
2015-08-19 20:39:45 +00:00
|
|
|
G: Goo // final comment
|
2015-04-28 08:56:01 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-11-20 02:11:32 +00:00
|
|
|
fn bar<F /* comment on F */, G /* comment on G */>() {}
|
2015-04-28 08:56:01 +00:00
|
|
|
|
2015-11-20 02:11:32 +00:00
|
|
|
fn baz() -> Baz /* Comment after return type */ {}
|