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