]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/inline_local/macro_by_example.rs
Rollup merge of #107724 - klensy:imports, r=Mark-Simulacrum
[rust.git] / tests / rustdoc / inline_local / macro_by_example.rs
1 /// docs for foo
2 #[deprecated(since = "1.2.3", note = "text")]
3 #[macro_export]
4 macro_rules! foo {
5     ($($tt:tt)*) => {}
6 }
7
8 // @has macro_by_example/macros/index.html
9 pub mod macros {
10     // @!hasraw - 'pub use foo as bar;'
11     // @has macro_by_example/macros/macro.bar.html
12     // @has - '//*[@class="docblock"]' 'docs for foo'
13     // @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.2.3: text'
14     // @has - '//a/@href' 'macro_by_example.rs.html#4-6'
15     #[doc(inline)]
16     pub use foo as bar;
17 }