mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
11 lines
208 B
Rust
11 lines
208 B
Rust
//@ aux-build:define-macro.rs
|
|
|
|
macro_rules! bar { () => {} }
|
|
define_macro!(bar);
|
|
bar!(); //~ ERROR `bar` is ambiguous
|
|
|
|
macro_rules! m { () => { #[macro_use] extern crate define_macro; } }
|
|
m!();
|
|
|
|
fn main() {}
|