-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Compiler panic when accessing an associated type's consts in generic function #42956
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
A-associated-items
Area: Associated items (types, constants & functions)
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
cc #29646 |
cc @eddyb |
Possible workaround?
Playground link: https://play.rust-lang.org/?gist=8eae8de12cc67e7a6b6d2cca09e4cd49&version=nightly |
Could this be tagged as |
This is fixed on |
topecongiro
added a commit
to topecongiro/rust
that referenced
this issue
Jan 11, 2018
Closes rust-lang#36792. Closes rust-lang#38091. Closes rust-lang#39687. Closes rust-lang#42148. Closes rust-lang#42956.
kennytm
added a commit
to kennytm/rust
that referenced
this issue
Jan 11, 2018
Add tests to fixed issues. Closes rust-lang#36792. Closes rust-lang#38091. Closes rust-lang#39687. Closes rust-lang#42148. Closes rust-lang#42956.
kennytm
added a commit
to kennytm/rust
that referenced
this issue
Jan 11, 2018
Add tests to fixed issues. Closes rust-lang#36792. Closes rust-lang#38091. Closes rust-lang#39687. Closes rust-lang#42148. Closes rust-lang#42956.
kennytm
added a commit
to kennytm/rust
that referenced
this issue
Jan 12, 2018
Add tests to fixed issues. Closes rust-lang#36792. Closes rust-lang#38091. Closes rust-lang#39687. Closes rust-lang#42148. Closes rust-lang#42956.
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
A-associated-items
Area: Associated items (types, constants & functions)
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Attempting to run this code causes the compiler to panic with the given message, which obviously should not happen.
Note that attempting to do that with concrete types works - i.e. removing the function
generic()
and adding this compiles fine:Playground link for the above code: https://is.gd/7AqiMP
Meta
The text was updated successfully, but these errors were encountered: