[−][src]Macro concat_with::concat
Concatenates literals into a static string slice.
This macro is like the concat!
macro in std
, but can also be used to concatenate literals separated by a specific literal.
#[macro_use] extern crate concat_with; assert_eq!("test10btrue", concat!("test", 10, 'b', true)); assert_eq!("test, 10, b, true", concat!(with ", ", "test", 10, 'b', true)); assert_eq!("test\n10\nb\ntrue", concat_line!("test", 10, 'b', true));