gccrs: Handle `async` functions in traits
[official-gcc.git] / gcc / testsuite / rust / compile / macro44.rs
blobdabac6f78442053c9c957d2ce7fe25d2a356bece
1 mod foo {
2     mod bar {
3         mod baz {
4             macro_rules! baz {
5                 () => {{}};
6             }
7         }
8     }
10     macro_rules! foo {
11         () => {{}};
12     }
14     fn foo_f() {
15         foo!();
16     }
18     fn bar_f() {
19         baz!(); // { dg-error "unknown macro" }
20     }
23 mod foo2 {
24     #[macro_export]
25     macro_rules! bar1 {
26         () => {};
27     }
29     macro_rules! bar2 {
30         () => {};
31     }
34 fn main() {}