blob: 109f43ffe25d1b00f14dd835ea0abc0451af43d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#![warn(clippy::print_stderr)]
fn main() {
eprintln!("Hello");
//~^ ERROR: use of `eprintln!`
//~| NOTE: `-D clippy::print-stderr` implied by `-D warnings`
println!("This should not do anything");
eprint!("World");
//~^ ERROR: use of `eprint!`
print!("Nor should this");
}
|