Add regression test fo #7222
This commit is contained in:
parent
f39a250df6
commit
efc96b2c60
@ -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…
x
Reference in New Issue
Block a user