]> git.lizzy.rs Git - rust.git/blob - src/test/ui/modules/issue-56411.rs
Rollup merge of #90498 - joshtriplett:target-tier-policy-draft-updates, r=Mark-Simulacrum
[rust.git] / src / test / ui / modules / issue-56411.rs
1 macro_rules! import {
2     ( $(($path:expr, $name:ident)),* ) => {
3         $(
4             #[path = $path]
5             mod $name;
6             pub use self::$name;
7             //~^ ERROR the name `issue_56411_aux` is defined multiple times
8             //~| ERROR `issue_56411_aux` is only public within the crate, and cannot be re-exported outside
9
10         )*
11     }
12 }
13
14 import!(("issue-56411-aux.rs", issue_56411_aux));
15
16 fn main() {
17     println!("Hello, world!");
18 }