-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Compiler panic when accessing an associated type's consts in generic function #42956
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 |
Mark-Simulacrum
added
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
C-bug
Category: This is a bug.
labels
Jul 19, 2017
Could this be tagged as |
arielb1
added
the
A-associated-items
Area: Associated items (types, constants & functions)
label
Sep 3, 2017
This is fixed on |
eddyb
added
the
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
label
Dec 31, 2017
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in 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: