trailing_empty_array in tests #13837
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
Empty arrays are not unreasonable in test code. I noticed this with proptest-generated structs, but it applies equally to user-written code, so I think it makes sense to allow this for all test code, rather than getting proptest to put
#[allow(clippy::trailing_empty_array)]
on its generated code.Lint Name
trailing_empty_array
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen: [no error]
Version
and
Additional Labels
No response
The text was updated successfully, but these errors were encountered: