]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/recovery-forbidden.rs
Rollup merge of #106783 - WaffleLapkin:break-my-ident, r=wesleywiser
[rust.git] / tests / ui / macros / recovery-forbidden.rs
1 // check-pass
2
3 macro_rules! dont_recover_here {
4     ($e:expr) => {
5         compile_error!("Must not recover to single !1 expr");
6     };
7
8     (not $a:literal) => {};
9 }
10
11 dont_recover_here! { not 1 }
12
13 fn main() {}