mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 14:07:46 +00:00
14 lines
279 B
Rust
14 lines
279 B
Rust
// 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() {}
|