-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
let a: Vec<&str, "aaa"> = Vec::new(); emits internal compiler error #58811
Labels
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.
Comments
cc @varkor |
nightly-2019-02-01 (no-ice):
nightly-2019-02-15 (no ICE):
nightly-2019-02-21 (ICE):
So the bug was introduced between 146aa60...f66e469 |
This is fall out from the recent const generics changes. I'll be simpler to fix when #58583 has been merged. |
pietroalbini
added a commit
to pietroalbini/rust
that referenced
this issue
Mar 8, 2019
…trochenkov Add a test for invalid const arguments Closes rust-lang#58811.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
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
The text was updated successfully, but these errors were encountered: