mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Add test for goto def on proc macro invocation
This commit is contained in:
parent
d5eb17ade5
commit
4390125314
1 changed files with 17 additions and 0 deletions
|
@ -1176,4 +1176,21 @@ fn foo() { A { a$0: }; }
|
|||
"#,
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn goto_proc_macro() {
|
||||
check(
|
||||
r#"
|
||||
//- /main.rs crate:main deps:mac
|
||||
use mac::fn_macro;
|
||||
|
||||
fn_macro$0!();
|
||||
|
||||
//- /mac.rs crate:mac
|
||||
#[proc_macro]
|
||||
fn fn_macro() {}
|
||||
//^^^^^^^^
|
||||
"#,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue