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
19 lines
391 B
Plaintext
19 lines
391 B
Plaintext
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
|
|
|