]> git.lizzy.rs Git - rust.git/blob - tests/ui/macro_backtrace/main.rs
Rollup merge of #106470 - ehuss:tidy-no-wasm, r=Mark-Simulacrum
[rust.git] / tests / ui / macro_backtrace / main.rs
1 // Test that the macro backtrace facility works
2 // aux-build:ping.rs
3 // revisions: default -Zmacro-backtrace
4 //[-Zmacro-backtrace] compile-flags: -Z macro-backtrace
5
6 #[macro_use] extern crate ping;
7
8 // a local macro
9 macro_rules! pong {
10     () => { syntax error };
11 }
12 //~^^ ERROR expected one of
13 //~| ERROR expected one of
14 //~| ERROR expected one of
15
16 #[allow(non_camel_case_types)]
17 struct syntax;
18
19 fn main() {
20     pong!();
21     ping!();
22     deep!();
23 }