Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

concat_idents

The tracking issue for this feature is: #29599

This feature is deprecated, to be replaced by macro_metavar_expr_concat.


This feature is expected to be superseded by macro_metavar_expr_concat.

The concat_idents feature adds a macro for concatenating multiple identifiers into one identifier.

Examples

#![feature(concat_idents)]

fn main() {
    fn foobar() -> u32 { 23 }
    let f = concat_idents!(foo, bar);
    assert_eq!(f(), 23);
}