rust/tests/target/comments-fn.rs

24 lines
603 B
Rust
Raw Normal View History

// Test comments on functions are preserved.
// Comment on foo.
fn foo<F, G>(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*/)
2015-04-28 23:53:33 +02:00
-> bar
where F: Foo, // COmment after where clause
G: Goo /* final comment */
{
}
2015-04-29 05:00:58 +02:00
fn bar<F /* comment on F */, G /* comment on G */>() {
}
fn baz() -> Baz /* Comment after return type */ {
}