2020-11-22 12:02:57 -06:00
|
|
|
#![warn(clippy::print_stderr)]
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
eprintln!("Hello");
|
2023-07-28 14:35:48 -05:00
|
|
|
//~^ ERROR: use of `eprintln!`
|
|
|
|
//~| NOTE: `-D clippy::print-stderr` implied by `-D warnings`
|
2020-11-29 02:55:47 -06:00
|
|
|
println!("This should not do anything");
|
2020-11-22 12:02:57 -06:00
|
|
|
eprint!("World");
|
2023-07-28 14:35:48 -05:00
|
|
|
//~^ ERROR: use of `eprint!`
|
2020-11-29 02:55:47 -06:00
|
|
|
print!("Nor should this");
|
2020-11-22 12:02:57 -06:00
|
|
|
}
|