about summary refs log tree commit diff
path: root/tests/ui/macros/recovery-forbidden.rs
blob: dc50d8b9dd86f09a422c49dd2f2c8f8a87b4b7e3 (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() {}