How to send output to stderr?
After Rust 1.19 As of Rust 1.19, you can use the eprint and eprintln macros: fn main() { eprintln!(“This is going to standard error!, {}”, “awesome”); } This was originally proposed in RFC 1896. Before Rust 1.19 You can see the implementation of println! to dive into exactly how it works, but it was a …