-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Named functions don't implement Debug #31522
Copy link
Copy link
Open
Labels
A-type-systemArea: Type systemArea: Type systemC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-langRelevant to the language teamRelevant to the language teamT-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-type-systemArea: Type systemArea: Type systemC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-langRelevant to the language teamRelevant to the language teamT-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Trying to compile (https://play.rust-lang.org/?gist=3b38f384f0f7ddecc142&version=stable):
It seem that named functions have to be coerced to anonymous ones in order to implement
Debug. This means any structs containing functions don't deriveDebug, which makes unit testing tricky.