summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-38715.rs
blob: 85ed97663e8a0db7ff00411033bf8a9faff680d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[macro_export]
macro_rules! foo { () => {} }

#[macro_export]
macro_rules! foo { () => {} } //~ ERROR the name `foo` is defined multiple times

mod inner1 {
    #[macro_export]
    macro_rules! bar { () => {} }
}

mod inner2 {
    #[macro_export]
    macro_rules! bar { () => {} } //~ ERROR the name `bar` is defined multiple times
}

fn main() {}