mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 02:23:19 +00:00
ddcfff6d9a
Add a config, allow-print-in-tests, that can be set in clippy.toml which allows the usage of `[e]print[ln]!` macros in tests. Closes #9795
18 lines
391 B
Text
18 lines
391 B
Text
error: use of `print!`
|
|
--> $DIR/print_macro.rs:6:5
|
|
|
|
|
LL | print!("{n}");
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::print-stdout` implied by `-D warnings`
|
|
|
|
error: use of `eprint!`
|
|
--> $DIR/print_macro.rs:7:5
|
|
|
|
|
LL | eprint!("{n}");
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::print-stderr` implied by `-D warnings`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|