-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Can't import super #29036
Copy link
Copy link
Closed
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyC-bugCategory: This is a bug.Category: This is a bug.T-langRelevant to the language teamRelevant to the language team
Metadata
Metadata
Assignees
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyC-bugCategory: This is a bug.Category: This is a bug.T-langRelevant to the language teamRelevant to the language team
Type
Fields
Give feedbackNo fields configured for issues without a type.
I'm not sure if this falls into the realm of something needing an RFC or not, but I expected this to work:
but it gives
error: expected identifier, found keywordsuper``.If I do it in an import list I get a different error:
error: unresolved importsuper. There is nosuperin???``(I suppose this also applies to
self, but I can't think of a reason to do that.)Edit: This seems to work as a substitute: