rust-clippy/tests/ui-toml/print_macro/print_macro.stderr
Trevor Arjeski ddcfff6d9a Add allow-print-in-tests config
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
2022-11-04 20:33:04 +03:00

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