We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8719b74 commit 4dd05e6Copy full SHA for 4dd05e6
tests/rustdoc/auxiliary/jump-to-def-macro.rs
@@ -0,0 +1,6 @@
1
+#[macro_export]
2
+macro_rules! symbols {
3
+ ($name:ident = $value:expr) => {
4
+ pub const $name: isize = $value;
5
+ }
6
+}
tests/rustdoc/jump-to-def-macro.rs
@@ -0,0 +1,15 @@
+//@ aux-build:jump-to-def-macro.rs
+//@ build-aux-docs
+//@ compile-flags: -Zunstable-options --generate-link-to-definition
+
+#![crate_name = "foo"]
7
+// @has 'src/foo/jump-to-def-macro.rs.html'
8
9
+#[macro_use]
10
+extern crate jump_to_def_macro;
11
12
+// @has - '//a[@href="../../jump_to_def_macro/macro.symbols.html"]' 'symbols!'
13
+symbols! {
14
+ A = 12
15
0 commit comments