]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/inline_local/macro_by_example.rs
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / 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 }