mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
18 lines
228 B
Rust
18 lines
228 B
Rust
// edition:2018
|
|
|
|
#![feature(decl_macro)]
|
|
|
|
mod foo {
|
|
fn f() {}
|
|
macro f() {}
|
|
|
|
pub macro m() {
|
|
use f as g; //~ ERROR `f` is private, and cannot be re-exported
|
|
f!();
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
foo::m!();
|
|
}
|