]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macro_backtrace/main.rs
Do not abort compilation if expansion produces errors
[rust.git] / src / test / ui / macro_backtrace / main.rs
1 // Test that the macro backtrace facility works
2 // aux-build:ping.rs
3 // compile-flags: -Z external-macro-backtrace
4
5 #[macro_use] extern crate ping;
6
7 // a local macro
8 macro_rules! pong {
9     () => { syntax error };
10 }
11 //~^^ ERROR expected one of
12 //~| ERROR expected one of
13 //~| ERROR expected one of
14
15 struct syntax;
16
17 fn main() {
18     pong!();
19     ping!();
20     deep!();
21 }