4 ms·
That actually doesn't work in the general case, because concat!() only accepts static (compile-time) literals. i.e., this is allowed: concat!("string", "othe
by brundolf 6y ago
That actually doesn't work in the general case, because concat!() only accepts static (compile-time) literals. i.e., this is allowed:
concat!("string", "other string")
but this is not:
let my_str: String = ...;
concat!(my_str, "other string")