]> git.proxmox.com Git - rustc.git/blame - src/test/ui/macro_backtrace/main.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / macro_backtrace / main.rs
CommitLineData
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
9macro_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)]
17struct syntax;
18
223e47cc 19fn main() {
ff7c6d11
XL
20 pong!();
21 ping!();
22 deep!();
223e47cc 23}