summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/lint-level-macro-def-mod.rs
blob: 79f7d1206df202bd0248b618fa9e635bdac3c68d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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() {}