Missing tests for #92630 #93143
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.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
Right.. #92630 is my own PR; I'm noting this as an issue, mainly so I won't forget this, because I won't do this myself right now / today. Or someone else can do this if they want.
I'm not 100% certain where the best place for such a test to go is, and/or whether it makes sense to have them in one place or separated and more close to the respective type's definition.
A test to prevent any future regression removing the new auto trait implementations introduced by #92630 can look about as follows
Edit: This code is needlessly complicated, see my comment below.
@rustbot label C-enhancement, A-testsuite, E-easy, E-needs-test, T-libs
The text was updated successfully, but these errors were encountered: