2019-02-24 00:18:46 -06:00
|
|
|
impl TestTrait {
|
2019-02-24 08:04:47 -06:00
|
|
|
fn foo_one_pre(/* Important comment1 */
|
2019-02-24 00:18:46 -06:00
|
|
|
self) {
|
|
|
|
}
|
|
|
|
|
2019-02-24 08:04:47 -06:00
|
|
|
fn foo_one_post(self
|
|
|
|
/* Important comment1 */) {
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo_pre(
|
2019-02-24 00:18:46 -06:00
|
|
|
/* Important comment1 */
|
|
|
|
self,
|
|
|
|
/* Important comment2 */
|
|
|
|
a: i32,
|
|
|
|
) {
|
|
|
|
}
|
|
|
|
|
2019-02-24 08:04:47 -06:00
|
|
|
fn foo_post(
|
|
|
|
self
|
|
|
|
/* Important comment1 */,
|
|
|
|
a: i32
|
|
|
|
/* Important comment2 */,
|
|
|
|
) {
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar_pre(
|
2019-02-24 00:18:46 -06:00
|
|
|
/* Important comment1 */
|
|
|
|
&mut self,
|
|
|
|
/* Important comment2 */
|
|
|
|
a: i32,
|
|
|
|
) {
|
|
|
|
}
|
|
|
|
|
2019-02-24 08:04:47 -06:00
|
|
|
fn bar_post(
|
|
|
|
&mut self
|
|
|
|
/* Important comment1 */,
|
|
|
|
a: i32
|
|
|
|
/* Important comment2 */,
|
|
|
|
) {
|
|
|
|
}
|
|
|
|
|
|
|
|
fn baz_pre(
|
2019-02-24 00:18:46 -06:00
|
|
|
/* Important comment1 */
|
|
|
|
self: X< 'a , 'b >,
|
|
|
|
/* Important comment2 */
|
|
|
|
a: i32,
|
|
|
|
) {
|
|
|
|
}
|
|
|
|
|
2019-02-24 08:04:47 -06:00
|
|
|
fn baz_post(
|
|
|
|
self: X< 'a , 'b >
|
|
|
|
/* Important comment1 */,
|
|
|
|
a: i32
|
|
|
|
/* Important comment2 */,
|
|
|
|
) {
|
|
|
|
}
|
2019-02-24 00:18:46 -06:00
|
|
|
|
2019-02-24 08:04:47 -06:00
|
|
|
fn baz_tree_pre(
|
|
|
|
/* Important comment1 */
|
2019-02-24 00:18:46 -06:00
|
|
|
self: X< 'a , 'b >,
|
|
|
|
/* Important comment2 */
|
|
|
|
a: i32,
|
|
|
|
/* Important comment3 */
|
|
|
|
b: i32,
|
|
|
|
) {
|
|
|
|
}
|
2019-02-24 08:04:47 -06:00
|
|
|
|
|
|
|
fn baz_tree_post(
|
|
|
|
self: X< 'a , 'b >
|
|
|
|
/* Important comment1 */,
|
|
|
|
a: i32
|
|
|
|
/* Important comment2 */,
|
|
|
|
b: i32
|
|
|
|
/* Important comment3 */,){
|
|
|
|
}
|
|
|
|
|
|
|
|
fn multi_line(
|
|
|
|
self: X<'a, 'b>, /* Important comment1-1 */
|
|
|
|
/* Important comment1-2 */
|
|
|
|
a: i32, /* Important comment2 */
|
|
|
|
b: i32, /* Important comment3 */
|
|
|
|
) {
|
|
|
|
}
|
|
|
|
|
|
|
|
fn two_line_comment(
|
|
|
|
self: X<'a, 'b>, /* Important comment1-1
|
|
|
|
Important comment1-2 */
|
|
|
|
a: i32, /* Important comment2 */
|
|
|
|
b: i32, /* Important comment3 */
|
|
|
|
) {
|
|
|
|
}
|
|
|
|
|
|
|
|
fn no_first_line_comment(
|
|
|
|
self: X<'a, 'b>,
|
|
|
|
/* Important comment2 */a: i32,
|
|
|
|
/* Important comment3 */b: i32,
|
|
|
|
) {
|
|
|
|
}
|
2019-02-24 00:18:46 -06:00
|
|
|
}
|