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.
1 parent 27ed1eb commit cf456d7Copy full SHA for cf456d7
crates/ide_completion/src/completions/dot.rs
@@ -428,4 +428,32 @@ fn main() { make_s!().f$0; }
428
"#]],
429
)
430
}
431
+
432
+ #[test]
433
+ fn completes_after_macro_call_in_submodule() {
434
+ check(
435
+ r#"
436
+macro_rules! empty {
437
+ () => {};
438
+}
439
440
+mod foo {
441
+ #[derive(Debug, Default)]
442
+ struct Template2 {}
443
444
+ impl Template2 {
445
+ fn private(&self) {}
446
+ }
447
+ fn baz() {
448
+ let goo: Template2 = Template2 {};
449
+ empty!();
450
+ goo.$0
451
452
453
+ "#,
454
+ expect![[r#"
455
+ me private() -> ()
456
+ "#]],
457
+ );
458
459
0 commit comments