This language bar is your friend. Select your favorite languages!
Edit summary for version 40 :
[Rust] Fixed explanation
↷

Version 39

Version 40

Idiom #59 Write to standard error stream

Print the message "x is negative" to standard error (stderr), with integer x value substitution (e.g. "-2 is negative").

Idiom #59 Write to standard error stream

Print the message "x is negative" to standard error (stderr), with integer x value substitution (e.g. "-2 is negative").

Code
eprintln!("{} is negative", x);
Code
eprintln!("{} is negative", x);
Comments bubble
Please note that writing to `stderr` can fail—therefor the `unwrap`.