mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 09:38:26 +03:00
Add test
This commit is contained in:
@@ -428,4 +428,32 @@ impl S { fn foo(&self) {} }
|
||||
"#]],
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn completes_after_macro_call_in_submodule() {
|
||||
check(
|
||||
r#"
|
||||
macro_rules! empty {
|
||||
() => {};
|
||||
}
|
||||
|
||||
mod foo {
|
||||
#[derive(Debug, Default)]
|
||||
struct Template2 {}
|
||||
|
||||
impl Template2 {
|
||||
fn private(&self) {}
|
||||
}
|
||||
fn baz() {
|
||||
let goo: Template2 = Template2 {};
|
||||
empty!();
|
||||
goo.$0
|
||||
}
|
||||
}
|
||||
"#,
|
||||
expect![[r#"
|
||||
me private() -> ()
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user