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