-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
ICE: Returning impl Trait with placeholder type parameter #67995
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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-gnuEDIT: No ICE on stable Rust 1.40.0, build fails with error
E0121atfn evil() ....Compiler Log
Expand