Concatenates strings at compile time.
This macro can be useful also as a guard that string is a compile-time constant.
Example
use std::concat;
assert_eq!(concat!("foo", "bar"), "foobar");
Run this example
Concatenates strings at compile time.
This macro can be useful also as a guard that string is a compile-time constant.
use std::concat;
assert_eq!(concat!("foo", "bar"), "foobar");
Run this example