Closure with a typed function argument and top level struct constructor break in nightly #107461
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
C-bug
Category: This is a bug.
P-critical
Critical priority
regression-untriaged
Untriaged performance or correctness regression.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
I tried this code: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=7f3bdb07bcc3a0a30d2ef80cf0adfd22
This code should compile.
Instead of compiling, the compiler generates the following error:
Version it worked on
It most recently worked on: (1.67)
Version with regression
Breaks in latest nightly 1.69.0-nightly (2023-01-29 e972bc8)
Related:
The text was updated successfully, but these errors were encountered: