summary refs log tree commit diff
path: root/src/test/ui/issues/issue-56411.rs
blob: 3561c21cc7ee34d4ebc8759d80d88d68691d9a2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
macro_rules! import {
    ( $($name:ident),* ) => {
        $(
            mod $name;
            pub use self::$name;
            //~^ ERROR the name `issue_56411_aux` is defined multiple times
            //~| ERROR `issue_56411_aux` is private, and cannot be re-exported

        )*
    }
}

import!(issue_56411_aux);

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