Add regression test fo #7222

This commit is contained in:
Lukas Wirth 2021-07-15 22:23:34 +02:00
parent f39a250df6
commit efc96b2c60

View File

@ -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)
"#]],
);
}