blob: 79516014ea9def1e7cbfa50a3e8f0f5a471b2623 [file] [log] [blame] [edit]
extern crate fwdansi;
extern crate termcolor;
use fwdansi::write_ansi;
use std::io;
use std::process::Command;
use termcolor::*;
fn main() -> io::Result<()> {
let output = Command::new("rustc").args(&["--color", "always"]).output()?;
let mut stderr = StandardStream::stderr(ColorChoice::Always);
write_ansi(&mut stderr, &output.stderr)?;
//^ should print "error: no input filename given" with appropriate color everywhere.
Ok(())
}