mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-16 01:38:13 +00:00
Merge #9608
9608: minor: Add regression test fo #7222 r=Veykril a=Veykril Closes #7222 bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
commit
2877707677
1 changed files with 16 additions and 0 deletions
|
@ -253,3 +253,19 @@ use {$0};
|
|||
"#]],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn impl_prefix_does_not_add_fn_snippet() {
|
||||
// regression test for 7222
|
||||
check(
|
||||
r#"
|
||||
mod foo {
|
||||
pub fn bar(x: u32) {}
|
||||
}
|
||||
use self::foo::impl$0
|
||||
"#,
|
||||
expect![[r#"
|
||||
fn bar fn(u32)
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue