mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
31 lines
379 B
Rust
31 lines
379 B
Rust
// Test that the macro backtrace facility works (supporting file)
|
|
|
|
// a non-local macro
|
|
#[macro_export]
|
|
macro_rules! ping {
|
|
() => {
|
|
pong!();
|
|
}
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! deep {
|
|
() => {
|
|
foo!();
|
|
}
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! foo {
|
|
() => {
|
|
bar!();
|
|
}
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! bar {
|
|
() => {
|
|
ping!();
|
|
}
|
|
}
|