]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-json/reexport/macro.rs
Add regression test for #89852
[rust.git] / src / test / rustdoc-json / reexport / macro.rs
1 // edition:2018
2
3 #![no_core]
4 #![feature(no_core)]
5
6 // @count macro.json "$.index[*][?(@.name=='macro')].inner.items[*]" 2
7
8 // @set repro_id = macro.json "$.index[*][?(@.name=='repro')].id"
9 // @has - "$.index[*][?(@.name=='macro')].inner.items[*]" $repro_id
10 #[macro_export]
11 macro_rules! repro {
12     () => {};
13 }
14
15 // @set repro2_id = macro.json "$.index[*][?(@.inner.name=='repro2')].id"
16 // @has - "$.index[*][?(@.name=='macro')].inner.items[*]" $repro2_id
17 pub use crate::repro as repro2;