rust/tests/ui/modules/issue-56411.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
462 B
Rust
Raw Normal View History

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!");
}