2018-12-17 19:22:08 -06:00
|
|
|
macro_rules! import {
|
2019-03-11 19:49:17 -05:00
|
|
|
( $(($path:expr, $name:ident)),* ) => {
|
2018-12-17 19:22:08 -06:00
|
|
|
$(
|
2019-03-11 19:49:17 -05:00
|
|
|
#[path = $path]
|
2018-12-17 19:22:08 -06:00
|
|
|
mod $name;
|
|
|
|
pub use self::$name;
|
2019-01-25 15:36:50 -06:00
|
|
|
//~^ ERROR the name `issue_56411_aux` is defined multiple times
|
2021-11-05 14:43:55 -05:00
|
|
|
//~| ERROR `issue_56411_aux` is only public within the crate, and cannot be re-exported outside
|
2018-12-17 19:22:08 -06:00
|
|
|
|
|
|
|
)*
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-11 19:49:17 -05:00
|
|
|
import!(("issue-56411-aux.rs", issue_56411_aux));
|
2018-12-17 19:22:08 -06:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
println!("Hello, world!");
|
|
|
|
}
|