How to use concat_idents macro

The concat_idents macro is removed; use the macro_metavar_expr_concat feature with ${concat(...)} syntax instead.

The concat_idents macro is removed and replaced by the macro_metavar_expr_concat feature using the ${concat(...)} syntax. Enable the new feature and use the metavariable expression inside your macro to join identifiers.

#![feature(macro_metavar_expr_concat)]

macro_rules! create_struct {
    ($name:ident) => {
        pub struct ${concat(First, $name)};
    };
}

create_struct!(Thing);

This expands to pub struct FirstThing;.