-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
super let is allowed in nonsensical positions #142281
Copy link
Copy link
Open
Labels
C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.F-super_letit's super, let's go!it's super, let's go!I-lang-radarItems that are on lang's radar and will need eventual work or consideration.Items that are on lang's radar and will need eventual work or consideration.T-langRelevant to the language teamRelevant to the language team
Metadata
Metadata
Assignees
Labels
C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.F-super_letit's super, let's go!it's super, let's go!I-lang-radarItems that are on lang's radar and will need eventual work or consideration.Items that are on lang's radar and will need eventual work or consideration.T-langRelevant to the language teamRelevant to the language team
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
I expected all three functions to fail to compile, since
super letis used in places that don't make sense. However, they compiled without errors. (As far as I can tell, thesesuper letbindings behave exactly like normalletbindings.)@rustbot labels +F-super_let
Meta
Reproducible on the playground with
1.89.0-nightly (2025-06-09 d13a431a6cc69cd65efe)