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