How to evaluate and stringify a compile-time constant?

You can use the concatcp! macro from the const_format crate:

use const_format::concatcp;

const NUM: i32 = 11;

fn main() {
    let s = concatcp!("test", 10, NUM, 'b', true);
    assert_eq!(s, "test1011btrue");
}