RS.CLIPPY.PRINT_STDOUT
Printing on stdout
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: print_stdout. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks for printing on stdout. The purpose of this lint is to catch debugging remnants.
Why restrict this?
People often print on stdout while debugging an application and might forget to remove those prints afterward.
Known problems
Only catches print! and println! calls.
Example
println!("Hello world!");
Configuration
-
allow-print-in-tests: Whether print macros (ex.println!) should be allowed in test functions or#[cfg(test)](default:
false)