Skip to content
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

cannot use an outer type parameter in this context #39211

Closed
yongqli opened this issue Jan 21, 2017 · 4 comments
Closed

cannot use an outer type parameter in this context #39211

yongqli opened this issue Jan 21, 2017 · 4 comments
Labels
C-bug Category: This is a bug. E-needs-test Call for participation: Writing correctness tests. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@yongqli
Copy link

yongqli commented Jan 21, 2017

I get the error:

error[E0402]: cannot use an outer type parameter in this context
  --> <anon>:11:17
   |
11 |     let a = [3; M::Row::DIM];
   |                 ^^^^^^^^^^^

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

https://gist.github.com/73a223aa33c081bf47d84c2bf52fcc19

@est31
Copy link
Member

est31 commented Jan 21, 2017

The given example is very similar to the one in #34344 , but this example ICE's on current nightly, while the other example gives a proper error.

@est31
Copy link
Member

est31 commented Jan 21, 2017

cc #29646

@withoutboats
Copy link
Contributor

This now returns a proper error just like #34344. This should probably be closed.

@est31
Copy link
Member

est31 commented Mar 27, 2017

Maybe a regression test should be added?

@frewsxcv frewsxcv added the E-needs-test Call for participation: Writing correctness tests. label Jun 4, 2017
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this issue Jul 26, 2017
@Mark-Simulacrum Mark-Simulacrum added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ labels Jul 26, 2017
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. E-needs-test Call for participation: Writing correctness tests. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

5 participants