mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 01:25:54 +00:00
20 lines
493 B
Rust
20 lines
493 B
Rust
|
// Test comments on functions are preserved.
|
||
|
|
||
|
// Comment on foo.
|
||
|
fn foo<F, G>(a: aaaaaaaaaaaaa, // A comment
|
||
|
b: bbbbbbbbbbbbb, /* a second comment */
|
||
|
c: ccccccccccccc,
|
||
|
d: ddddddddddddd,
|
||
|
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 */ {
|
||
|
}
|