rust-clippy/tests/compile-fail/print.rs

12 lines
190 B
Rust
Raw Normal View History

#![feature(plugin)]
#![plugin(clippy)]
#[deny(print_stdout)]
fn main() {
println!("Hello"); //~ERROR use of `println!`
print!("Hello"); //~ERROR use of `print!`
vec![1, 2];
}