mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
13 lines
280 B
Rust
13 lines
280 B
Rust
|
// compile-flags: --crate-name=build_script_build
|
||
|
|
||
|
#![warn(clippy::print_stdout)]
|
||
|
|
||
|
fn main() {
|
||
|
// Fix #6041
|
||
|
//
|
||
|
// The `print_stdout` lint shouldn't emit in `build.rs`
|
||
|
// as these methods are used for the build script.
|
||
|
println!("Hello");
|
||
|
print!("Hello");
|
||
|
}
|