]>
Commit | Line | Data |
---|---|---|
ff7c6d11 XL |
1 | // Test that the macro backtrace facility works |
2 | // aux-build:ping.rs | |
74b04a01 XL |
3 | // revisions: default -Zmacro-backtrace |
4 | //[-Zmacro-backtrace] compile-flags: -Z macro-backtrace | |
ea8adc8c | 5 | |
ff7c6d11 XL |
6 | #[macro_use] extern crate ping; |
7 | ||
8 | // a local macro | |
9 | macro_rules! pong { | |
10 | () => { syntax error }; | |
ea8adc8c | 11 | } |
ff7c6d11 XL |
12 | //~^^ ERROR expected one of |
13 | //~| ERROR expected one of | |
14 | //~| ERROR expected one of | |
ea8adc8c | 15 | |
0731742a XL |
16 | #[allow(non_camel_case_types)] |
17 | struct syntax; | |
18 | ||
223e47cc | 19 | fn main() { |
ff7c6d11 XL |
20 | pong!(); |
21 | ping!(); | |
22 | deep!(); | |
223e47cc | 23 | } |