mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
17 lines
257 B
Rust
17 lines
257 B
Rust
#[macro_use] mod bleh {
|
|
pub macro_rules! foo { //~ ERROR can't qualify macro_rules invocation
|
|
($n:ident) => (
|
|
fn $n () -> i32 {
|
|
1
|
|
}
|
|
)
|
|
}
|
|
|
|
}
|
|
|
|
foo!(meh);
|
|
|
|
fn main() {
|
|
println!("{}", meh());
|
|
}
|