Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

super doesn't work with use … as … syntax #66743

Closed
Twey opened this issue Nov 25, 2019 · 1 comment
Closed

super doesn't work with use … as … syntax #66743

Twey opened this issue Nov 25, 2019 · 1 comment

Comments

@Twey
Copy link

Twey commented Nov 25, 2019

Expected behaviour

I would expect super and self to behave the same as other module identifiers in all places.

Actual behaviour

It seems that super is not interpreted before the use … as … module-renaming syntax, resulting in an error about super being undefined:

https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=b06a2575fe28666b4298baa79816448b

@petrochenkov
Copy link
Contributor

Duplicate of one of these - #37156, #35612, #29036.
Yeah, this should work, but the fix is low priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants