rust/src/test/ui/macro_backtrace/main.rs
2018-12-25 21:08:33 -07:00

20 lines
352 B
Rust

// Test that the macro backtrace facility works
// aux-build:ping.rs
// compile-flags: -Z external-macro-backtrace
#[macro_use] extern crate ping;
// a local macro
macro_rules! pong {
() => { syntax error };
}
//~^^ ERROR expected one of
//~| ERROR expected one of
//~| ERROR expected one of
fn main() {
pong!();
ping!();
deep!();
}