about summary refs log tree commit diff
path: root/tests/ui/macros/no-close-delim-issue-139248.rs
blob: f15234eaff1a7b0f484fba92a2191ab0bbad5af6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// This code caused a "no close delim when reparsing Expr" ICE in #139248.

macro_rules! m {
    (static a : () = $e:expr) => {
        static a: () = $e;
    };
}

m! { static a : () = (if b) }
//~^ ERROR expected `{`, found `)`
//~| ERROR expected `{`, found `)`

fn main() {}