Closed
Description
In my opinion, clippy::use_debug
should allow the debug format "{:?}"
within Debug
trait implementations. This seems to be backed up by the comment in the test here:
Lines 15 to 20 in da7aebc
However, the expected output actually expects an error in this case
rust-clippy/tests/ui/print.stderr
Lines 9 to 13 in da7aebc
I propose that this error be removed from the test and the code adjusted to allow for debug formatting in Debug
. If this is not desired, then the comment in tests/ui/print.rs should be removed to avoid confusion.