rust/tests/ui/print_stdout_build_script.rs

13 lines
280 B
Rust
Raw Normal View History

2020-09-25 09:32:18 -05:00
// compile-flags: --crate-name=build_script_build
#![warn(clippy::print_stdout)]
fn main() {
// Fix #6041
//
2020-09-26 09:10:25 -05:00
// The `print_stdout` lint shouldn't emit in `build.rs`
// as these methods are used for the build script.
println!("Hello");
print!("Hello");
}