[Help] What's wrong with this?
szskill opened this issue · comments
szskill commented
I've checked almost everything, but it just doesn't work.
extern crate colored;
use colored::*;
fn main() {
println!("abc123".green());
}
szskill commented
Somehow it only works with formats.
Spenser Black commented
println!
only takes string literals as the first argument.
// shouldn't compile
let s = "hello";
println!(s);
// should compile
println!("hello");