rust/tests/ui/macros/recovery-forbidden.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
212 B
Rust
Raw Permalink Normal View History

//@ check-pass
macro_rules! dont_recover_here {
($e:expr) => {
compile_error!("Must not recover to single !1 expr");
};
(not $a:literal) => {};
}
dont_recover_here! { not 1 }
fn main() {}