Compiler panics when passing a tuple struct constructor as a function with the wrong number of arguments #49560
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-high
High priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When a tuple struct's constructor is passed to a function as a callback, the compiler panics if the constructor the wrong number of arguments.
I tried this code:
On
1.24.1
, this results in the following error as expected:However, on 1.25.0, the compiler panics instead:
This may be a duplicate of #47706, although this is occuring on a newer version of the compiler.
Meta
This happens on stable and nightly
rustc --version --verbose
:rustup run nightly rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: