macro_rules! concat {
($($x: expr),+ $(,)?) => { ... };
}
Expand description
Concatenates values into a string slice.
The input type must be one of
Examples
const PROMPT: &str = "The answer is";
const ANSWER: usize = 42;
const MESSAGE: &str = const_str::concat!(PROMPT, " ", ANSWER);
assert_eq!(MESSAGE, "The answer is 42");