mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Add regression test fo #7222
This commit is contained in:
parent
f39a250df6
commit
efc96b2c60
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…
Add table
Add a link
Reference in a new issue