]> git.proxmox.com Git - rustc.git/blame - src/test/ui/macros/macro-use-scope.rs
New upstream version 1.38.0+dfsg1
[rustc.git] / src / test / ui / macros / macro-use-scope.rs
CommitLineData
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
6fn f() {
7 let _ = macro_one!();
a7813a04 8}
3157f602
XL
9#[macro_use(macro_one)] // Check that this macro is usable in the above function
10extern crate two_macros;
a7813a04 11
c30ab7b3
SL
12fn g() {
13 macro_two!();
14}
3157f602 15macro_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} }
19m!();
20
a1dfa0c6
XL
21
22fn main() {}