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
@ -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