ICE when annotating the return type of a function returning impl Iterator<Item = &T>
to be Vec<_>
#100463
Labels
C-bug
Category: This is a bug.
glacier
ICE tracked in rust-lang/glacier.
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.
(Originally triggered by omitting a
.collect()
.) I believe it happens whenVec
is replaced with another type implementingFromIterator
too.Code
Playground: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=7c8637620ed85592da2967a16e3445d8
Meta
rustc --version --verbose
:Error output
(From playground.)
Backtrace
The text was updated successfully, but these errors were encountered: