Skip to content

cannot use an outer type parameter in this context #39211

@yongqli

Description

@yongqli

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

Activity

est31

est31 commented on Jan 21, 2017

@est31
Member

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

est31 commented on Jan 21, 2017

@est31
Member
withoutboats

withoutboats commented on Mar 27, 2017

@withoutboats
Contributor

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

est31

est31 commented on Mar 27, 2017

@est31
Member

Maybe a regression test should be added?

added
E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.
on Jun 4, 2017
added a commit that references this issue on Jul 26, 2017
9f4450b
added
C-bugCategory: This is a bug.
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
on Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @yongqli@frewsxcv@Mark-Simulacrum@est31@withoutboats

        Issue actions

          `cannot use an outer type parameter in this context` · Issue #39211 · rust-lang/rust