rust/tests/ui/print_stderr.rs
2020-12-07 23:38:56 +01:00

9 lines
168 B
Rust

#![warn(clippy::print_stderr)]
fn main() {
eprintln!("Hello");
println!("This should not do anything");
eprint!("World");
print!("Nor should this");
}