]> git.lizzy.rs Git - rust.git/blob - tests/target/comments-fn.rs
Handle attributes on modules (#968)
[rust.git] / tests / target / comments-fn.rs
1 // Test comments on functions are preserved.
2
3 // Comment on foo.
4 fn foo<F, G>(a: aaaaaaaaaaaaa, // A comment
5              b: bbbbbbbbbbbbb, // a second comment
6              c: ccccccccccccc,
7              // Newline comment
8              d: ddddddddddddd,
9              //  A multi line comment
10              // between args.
11              e: eeeeeeeeeeeee /* comment before paren */)
12              -> bar
13     where F: Foo, // COmment after where clause
14           G: Goo // final comment
15 {
16
17 }
18
19 fn bar<F /* comment on F */, G /* comment on G */>() {}
20
21 fn baz() -> Baz /* Comment after return type */ {}