]>
Commit | Line | Data |
---|---|---|
3157f602 XL |
1 | // aux-build:two_macros.rs |
2 | ||
416331ca | 3 | // build-pass (FIXME(62277): could be check-pass?) |
3157f602 XL |
4 | #![allow(unused)] |
5 | ||
6 | fn f() { | |
7 | let _ = macro_one!(); | |
a7813a04 | 8 | } |
3157f602 XL |
9 | #[macro_use(macro_one)] // Check that this macro is usable in the above function |
10 | extern crate two_macros; | |
a7813a04 | 11 | |
c30ab7b3 SL |
12 | fn g() { |
13 | macro_two!(); | |
14 | } | |
3157f602 | 15 | macro_rules! m { () => { |
3157f602 XL |
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 | ||
a1dfa0c6 XL |
21 | |
22 | fn main() {} |