ICE: Returning impl Trait with placeholder type parameter #67995
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-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Hope this isn't a duplicate.
EDIT: Updated example, removing async/await
Minimal Example
Workaround
Avoid placeholders.
fn evil() -> impl Trait<()> {
Meta
rustc 1.42.0-nightly (859764425 2020-01-07) running on x86_64-unknown-linux-gnu
EDIT: No ICE on stable Rust 1.40.0, build fails with error
E0121
atfn evil() ...
.Compiler Log
Expand
The text was updated successfully, but these errors were encountered: