mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 21:16:27 +03:00
Add test for goto def on proc macro invocation
This commit is contained in:
@@ -1176,4 +1176,21 @@ struct A { a: u32 }
|
||||
"#,
|
||||
)
|
||||
}
|
||||
|
||||
#[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() {}
|
||||
//^^^^^^^^
|
||||
"#,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user