ICE: Same capture can't be ByUse and ByValue at the same time
#141916
Labels
C-bug
Category: This is a bug.
F-ergonomic_clones
`#![feature(ergonomic_clones)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
Code
A mutant of
tests/ui/ergonomic-clones/dotuse/basic.rs
Meta
rustc --version --verbose
:Error output
command:
rustc --edition=2024
--edition=2021
also ICEsBacktrace
Bisects to
searched nightlies: from nightly-2025-01-01 to nightly-2025-06-01
regressed nightly: nightly-2025-03-08
searched commit range: b74da96...f5a1ef7
regressed commit: f5a1ef7
bisected with cargo-bisect-rustc v0.6.9
Host triple: x86_64-unknown-linux-gnu
Reproduce with:
Notes
compiler/rustc_hir_typeck/src/upvar.rs Line-2431
rust/compiler/rustc_hir_typeck/src/upvar.rs
Lines 2425 to 2437 in 99e7c15
@rustbot label F-ergonomic_clones
The text was updated successfully, but these errors were encountered: