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