blob: d2bd31b06d6069cdbea6c138a45e2255c31b12ef [file] [log] [blame] [edit]
// issue: <https://github.com/rust-lang/rust/issues/140479>
// Ensure a proper compiler error, instead of an ICE occurs.
// FIXME(macro_metavar_expr_concat): this error message could be improved
#![feature(macro_metavar_expr_concat)]
macro_rules! InRepetition {
(
$(
$($arg:ident),+
)+
) => {
$(
$(
${concat(_, $arg)} //~ ERROR nested repetitions with `${concat(...)}` metavariable expressions are not yet supported
)*
)*
};
}
InRepetition!(other);
fn main() {}