False positive unit-arg when deriving proptest::arbitrary::Arbitrary #6594
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
Lint name: unit-arg
I tried this code:
I expected to see this happen: clippy passes
Instead, this happened:
I've only seen this happen with https://github.com/AltSysrq/proptest/.
A more complicated example passes:
Possibly this is because some macro expanded code triggered the issue?
cargo expand
yields:Possibly the line
const _IMPL_ARBITRARY_FOR_Foo: () = {
triggers the false positive?Meta
cargo clippy -V
: clippy 0.1.51 (e38fb30 2021-01-14)rustc -Vv
:The text was updated successfully, but these errors were encountered: