2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2025-03-09 01:37:16 +00:00
rust-clippy/tests/ui/print_stderr.rs

11 lines
302 B
Rust

#![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");
}