-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Description
I tried this code:
#![feature(super_let)]
fn f() {
super let a = 1;
}
fn g() {
loop {
super let b = 2;
}
}
fn h() {
while {
super let c = 3;
false
} {}
}
I expected all three functions to fail to compile, since super let
is used in places that don't make sense. However, they compiled without errors. (As far as I can tell, these super let
bindings behave exactly like normal let
bindings.)
@rustbot labels +F-super_let
Meta
Reproducible on the playground with 1.89.0-nightly (2025-06-09 d13a431a6cc69cd65efe)
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