mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
18 lines
319 B
Rust
18 lines
319 B
Rust
//@ edition:2021
|
|
|
|
#![feature(decl_macro)]
|
|
|
|
mod foo {
|
|
macro_rules! bar {
|
|
() => {};
|
|
}
|
|
|
|
pub use bar as _; //~ ERROR `bar` is only public within the crate, and cannot be re-exported outside
|
|
|
|
macro baz() {}
|
|
|
|
pub use baz as _; //~ ERROR `baz` is private, and cannot be re-exported
|
|
}
|
|
|
|
fn main() {}
|