2020-12-20 17:19:49 +01:00
|
|
|
#![warn(clippy::print_stderr)]
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
eprintln!("Hello");
|
2023-08-24 21:32:12 +02:00
|
|
|
//~^ ERROR: use of `eprintln!`
|
|
|
|
//~| NOTE: `-D clippy::print-stderr` implied by `-D warnings`
|
2020-12-20 17:19:49 +01:00
|
|
|
println!("This should not do anything");
|
|
|
|
eprint!("World");
|
2023-08-24 21:32:12 +02:00
|
|
|
//~^ ERROR: use of `eprint!`
|
2020-12-20 17:19:49 +01:00
|
|
|
print!("Nor should this");
|
|
|
|
}
|