about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/print_stdout_build_script.rs
blob: f01b8538ef496397a5e96a5860c83d7cea81a4e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@compile-flags: --crate-name=build_script_build
//@ check-pass

#![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");
}