rust/tests/ui/macros/macro_undefined.rs

14 lines
164 B
Rust
Raw Normal View History

// Test macro_undefined issue
mod m {
#[macro_export]
macro_rules! kl {
() => ()
}
}
fn main() {
2017-11-20 12:13:27 +00:00
k!(); //~ ERROR cannot find
2018-05-14 00:22:52 +00:00
kl!();
}