Macro const_concat

Source
macro_rules! const_concat {
    (
    $($s:expr),* $(,)?
) => { ... };
}
Expand description

const-friendly version of concat!.

#[macro_use]
extern crate byte_strings;

const GREETING: &str = "Hello";
const MESSAGE: &str = const_concat!(GREETING, ", World!");