-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-super_letit's super, let's go!it's super, let's go!T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
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-bugCategory: This is a bug.Category: This is a bug.F-super_letit's super, let's go!it's super, let's go!T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.