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:
bors[bot] 2021-07-15 20:24:22 +00:00 committed by GitHub
commit 2877707677
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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