rust/compiler
Matthias Krüger 69ebe39cea
Rollup merge of #141876 - compiler-errors:missing-let-ty, r=SparrowLii
Don't declare variables in `ExprKind::Let` in invalid positions

Handle `let` expressions in invalid positions specially during resolve in order to avoid making destructuring-assignment expressions that reference (invalid) variables that have not yet been delcared yet.

See further explanation in test and comment in the source.

Fixes rust-lang/rust#141844
2025-06-03 07:03:44 +02:00
..
2025-06-03 08:23:21 +10:00
2025-05-28 15:14:34 +01:00
2025-05-28 15:14:34 +01:00
2025-05-30 02:28:35 +10:00
2025-06-03 08:23:21 +10:00