]> git.proxmox.com Git - rustc.git/blob - tests/ui/privacy/macro-private-reexport.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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() {}