mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
18 lines
291 B
Rust
18 lines
291 B
Rust
// This checks that exported macros lint as part of their module of origin, not
|
|
// the root module.
|
|
//
|
|
//@ check-pass
|
|
|
|
//! Top level documentation
|
|
#![deny(missing_docs)]
|
|
|
|
#[allow(missing_docs)]
|
|
mod module {
|
|
#[macro_export]
|
|
macro_rules! hello {
|
|
() => ()
|
|
}
|
|
}
|
|
|
|
fn main() {}
|