rust-clippy/tests/ui/print_stdout_build_script.rs
2020-09-25 23:32:18 +09:00

12 lines
280 B
Rust

// compile-flags: --crate-name=build_script_build
#![warn(clippy::print_stdout)]
fn main() {
// Fix #6041
//
// The `print_stdout` shouldn't be linted in `build.rs`
// as these methods are used for the build script.
println!("Hello");
print!("Hello");
}