summaryrefslogtreecommitdiffstats
path: root/src/test/ui/modules/issue-56411.rs
blob: 0a20f5fe98562f6827ee378aa57d66c77a0991df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
macro_rules! import {
    ( $(($path:expr, $name:ident)),* ) => {
        $(
            #[path = $path]
            mod $name;
            pub use self::$name;
            //~^ ERROR the name `issue_56411_aux` is defined multiple times
            //~| ERROR `issue_56411_aux` is only public within the crate, and cannot be re-exported outside

        )*
    }
}

import!(("issue-56411-aux.rs", issue_56411_aux));

fn main() {
    println!("Hello, world!");
}