]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/lint-level-macro-def-mod.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / lint / lint-level-macro-def-mod.rs
1 // This checks that exported macros lint as part of their module of origin, not
2 // the root module.
3 //
4 // check-pass
5
6 //! Top level documentation
7 #![deny(missing_docs)]
8
9 #[allow(missing_docs)]
10 mod module {
11     #[macro_export]
12     macro_rules! hello {
13         () => ()
14     }
15 }
16
17 fn main() {}