mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 08:36:03 +00:00
12 lines
302 B
Rust
12 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");
|
|
}
|