]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-use-scope.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / macros / macro-use-scope.rs
1 // aux-build:two_macros.rs
2
3 // compile-pass
4 #![allow(unused)]
5
6 fn f() {
7     let _ = macro_one!();
8 }
9 #[macro_use(macro_one)] // Check that this macro is usable in the above function
10 extern crate two_macros;
11
12 fn g() {
13     macro_two!();
14 }
15 macro_rules! m { () => {
16     #[macro_use(macro_two)] // Check that this macro is usable in the above function
17     extern crate two_macros as _two_macros;
18 } }
19 m!();
20
21
22 fn main() {}