-
-
Notifications
You must be signed in to change notification settings - Fork 16.1k
Namespacing of member in impl #72980
Copy link
Copy link
Closed as duplicate
Labels
C-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 team
Description
Activity
Metadata
Metadata
Assignees
Labels
C-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 team
enum namespacingwas introduced in RFC 390, which makes the following code compiles:However:
I think it would be usefule if we have namespacing of member in impl? I met this issue on using
bitflags, which depends on the feature of declaring const value in an impl block. Without namespacing of impl member we get this result: