Add tests for macro-based impls #28561
Labels
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
A lot of impls for primitives in libcore are done via macros, in lieu of variadic generics. This is done for tuples, function pointers, and arrays.
However, tweaking these macros can sometimes lead to regressions like these (caused by this tweak).
We should have some run-pass tests that ensure that the relevant traits are indeed implemented. Something like
for
fn
, and similar for the other macro-impld primitives.The text was updated successfully, but these errors were encountered: