"#,
expect![[r#"
fd foo u32
- me bar() fn bar(&self)
+ me bar() -> ()
"#]],
);
}
"#,
expect![[r#"
fd the_field (u32,)
- me foo() fn foo(self)
+ me foo() -> ()
"#]],
)
}
"#,
expect![[r#"
fd the_field (u32, i32)
- me foo() fn foo(&self)
+ me foo() -> ()
"#]],
)
}
fn foo(a: A) { a.$0 }
"#,
expect![[r#"
- me the_method() pub(crate) fn the_method(&self)
+ me the_method() -> ()
"#]],
);
}
fn foo(a: A<u32>) { a.$0 }
"#,
expect![[r#"
- me the_method() fn the_method(&self)
+ me the_method() -> ()
"#]],
)
}
fn foo(a: A) { a.$0 }
"#,
expect![[r#"
- me the_method() fn the_method(&self)
+ me the_method() -> ()
"#]],
);
}
fn foo(a: &A) { a.$0 }
",
expect![[r#"
- me the_method() fn the_method(&self)
+ me the_method() -> ()
"#]],
);
}
fn foo(a: A) { a.$0 }
",
expect![[r#"
- me the_method() fn the_method(&self)
+ me the_method() -> ()
"#]],
);
}
}
"#,
expect![[r#"
- me blah() pub fn blah(&self)
+ me blah() -> ()
"#]],
);
}
}
"#,
expect![[r#"
- me the_method() pub fn the_method(&self)
+ me the_method() -> ()
"#]],
);
}
fn main() { make_s!().f$0; }
"#,
expect![[r#"
- me foo() fn foo(&self)
+ me foo() -> ()
"#]],
)
}