mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 13:40:15 +03:00
16 lines
321 B
Rust
16 lines
321 B
Rust
// This test ensures that the `foo` decl macro is present in the module sidebar.
|
|
|
|
#![feature(decl_macro)]
|
|
#![crate_name = "foo"]
|
|
|
|
//@has 'foo/bar/index.html'
|
|
//@has - '//*[@id="rustdoc-modnav"]/ul[@class="block macro"]//a[@href="../macro.foo.html"]' 'foo'
|
|
|
|
pub macro foo {
|
|
() => { "bar" }
|
|
}
|
|
|
|
/// docs
|
|
pub mod bar {
|
|
}
|