rust/tests/ui/lint/lint-level-macro-def-mod.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
291 B
Rust
Raw Normal View History

2021-08-06 00:09:25 -05:00
// This checks that exported macros lint as part of their module of origin, not
// the root module.
//
//@ check-pass
2021-08-06 00:09:25 -05:00
//! Top level documentation
#![deny(missing_docs)]
#[allow(missing_docs)]
mod module {
#[macro_export]
macro_rules! hello {
() => ()
}
}
fn main() {}