]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/macro-private-reexport.rs
Auto merge of #106025 - matthiaskrgr:rollup-vz5rqah, r=matthiaskrgr
[rust.git] / src / test / ui / privacy / macro-private-reexport.rs
1 // edition:2021
2
3 #![feature(decl_macro)]
4
5 mod foo {
6     macro_rules! bar {
7         () => {};
8     }
9
10     pub use bar as _; //~ ERROR `bar` is only public within the crate, and cannot be re-exported outside
11
12     macro baz() {}
13
14     pub use baz as _; //~ ERROR `baz` is private, and cannot be re-exported
15 }
16
17 fn main() {}