-
-
Notifications
You must be signed in to change notification settings - Fork 16.8k
let a: Vec<&str, "aaa"> = Vec::new(); emits internal compiler error #58811
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) ❄️T-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.
Description
Activity
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) ❄️T-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.
The below code emits unexpectedly panicked in 1.34.0-nightly(2019-02-27).
let a: Vec<&str, "aaa"> = Vec::new();Error message:
Playground link:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=916dc66418a31a3a104e88b0e070b6c8