rust/tests/target/comments-fn.rs

22 lines
596 B
Rust
Raw Normal View History

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