]> git.lizzy.rs Git - rust.git/blob - tests/source/issue-3198.rs
leave pre comment for self
[rust.git] / tests / source / issue-3198.rs
1 impl TestTrait {
2     fn foo_one(/* Important comment1 */
3     self) {
4     }
5
6     fn foo(
7         /* Important comment1 */
8         self,
9         /* Important comment2 */
10         a: i32,
11     ) {
12     }
13
14     fn bar(
15             /* Important comment1 */
16     &mut self,
17         /* Important comment2 */
18             a: i32,
19     ) {
20     }
21
22     fn baz(
23     /* Important comment1 */
24             self: X< 'a ,  'b >,
25             /* Important comment2 */
26     a: i32,
27     ) {
28     }
29
30     fn baz_tree(
31     /* Important comment1 */
32
33             self: X< 'a ,  'b >,
34         /* Important comment2 */
35         a: i32,
36         /* Important comment3 */
37         b: i32,
38     ) {
39     }
40 }