summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/recovery-forbidden.rs
blob: 5dd2619330c4afb9e2d943a3f9ac6d2f6ac3200e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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() {}