Closed
Description
The following all compile and run for example:
println!(0);
writeln!(b, true);
println!('a');
I would expect them to produce "error: format argument must be a string literal." like print!(0);
does.
This is because they use things like concat!($fmt, "\n")
but concat!
accepts other literals not just str
.
I assume this isn't intentional.