We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f39a250 + efc96b2 commit 2877707Copy full SHA for 2877707
crates/ide_completion/src/tests/use_tree.rs
@@ -253,3 +253,19 @@ use {$0};
253
"#]],
254
);
255
}
256
+
257
+#[test]
258
+fn impl_prefix_does_not_add_fn_snippet() {
259
+ // regression test for 7222
260
+ check(
261
+ r#"
262
+mod foo {
263
+ pub fn bar(x: u32) {}
264
+}
265
+use self::foo::impl$0
266
+"#,
267
+ expect![[r#"
268
+ fn bar fn(u32)
269
+ "#]],
270
+ );
271
0 commit comments