2022-06-14 15:46:11 +09:00
|
|
|
// edition:2021
|
2022-06-14 14:58:46 +09:00
|
|
|
|
2022-06-15 00:42:10 +09:00
|
|
|
#![feature(decl_macro)]
|
|
|
|
|
2022-06-14 14:58:46 +09:00
|
|
|
mod foo {
|
|
|
|
macro_rules! bar {
|
|
|
|
() => {};
|
|
|
|
}
|
|
|
|
|
|
|
|
pub use bar as _; //~ ERROR `bar` is only public within the crate, and cannot be re-exported outside
|
2022-06-15 00:42:10 +09:00
|
|
|
|
|
|
|
macro baz() {}
|
|
|
|
|
|
|
|
pub use baz as _; //~ ERROR `baz` is private, and cannot be re-exported
|
2022-06-14 14:58:46 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|