From 9156b03287dd4a306d379c6295913d1fb3e01484 Mon Sep 17 00:00:00 2001 From: bohan Date: Thu, 27 Apr 2023 16:23:51 +0800 Subject: [PATCH] test(doc): no fallback marco resolution --- tests/rustdoc/issue-106142.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/rustdoc/issue-106142.rs diff --git a/tests/rustdoc/issue-106142.rs b/tests/rustdoc/issue-106142.rs new file mode 100644 index 00000000000..41505e72405 --- /dev/null +++ b/tests/rustdoc/issue-106142.rs @@ -0,0 +1,14 @@ +// @has 'issue_106142/a/index.html' +// @count 'issue_106142/a/index.html' '//ul[@class="item-table"]//li//a' 1 + +#![allow(rustdoc::broken_intra_doc_links)] + +pub mod a { + /// [`m`] + pub fn f() {} + + #[macro_export] + macro_rules! m { + () => {}; + } +}