]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-38715.rs
Rollup merge of #107015 - cuviper:ra-riscv64, r=Mark-Simulacrum
[rust.git] / tests / ui / macros / issue-38715.rs
1 #[macro_export]
2 macro_rules! foo { () => {} }
3
4 #[macro_export]
5 macro_rules! foo { () => {} } //~ ERROR the name `foo` is defined multiple times
6
7 mod inner1 {
8     #[macro_export]
9     macro_rules! bar { () => {} }
10 }
11
12 mod inner2 {
13     #[macro_export]
14     macro_rules! bar { () => {} } //~ ERROR the name `bar` is defined multiple times
15 }
16
17 fn main() {}