ICE with nested impl and closure capture #117802
Labels
A-closures
Area: Closures (`|…| { … }`)
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Found with a modified fuzz-rustc
Code
The ICE occurs with
--edition=2021
but not with--edition=2018
Error output
error[E0666]: nested
impl Trait
is not allowederror[E0562]:
impl Trait
only allowed in function and inherent method argument and return types, not inFn
trait paramsthread 'rustc' panicked at compiler/rustc_mir_build/src/build/expr/as_place.rs:253:31:
called
Option::unwrap()
on aNone
valueFull output including backtrace
Regression
Regression in nightly-2022-01-15, possibly due to #89861
Commits in range
Version
The text was updated successfully, but these errors were encountered: