-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Closed
Copy link
Labels
A-type-systemArea: Type systemArea: Type systemE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call 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) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Description
Trying to compile this:
type Foo<T> where T: Copy = Box<T>;
gives the following:
<anon>:1:22: 1:26 error: internal error looking up a definition [E0242]
<anon>:1 type Foo<T> where T: Copy = Box<T>;
^~~~
I'm not entirely sure if this is actually legal, but regardless it seems odd that an "internal error" is exposed to the user in the same way that regular compiler errors are.
rustc 1.0.0-nightly (b63cee4a1 2015-02-14 17:01:11 +0000)
Metadata
Metadata
Assignees
Labels
A-type-systemArea: Type systemArea: Type systemE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call 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) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
nagisa commentedon Feb 18, 2015
Something completely useless, but possibly fun: the line of code responsible for this error is almost 4 years old now, introduced in 48a69d2. During all those years it survived at least 4 switches to and from
~""
strings.Add regression test for rust-lang#22471
Rollup merge of rust-lang#24979 - jooert:test-22471, r=pnkfelix
Add regression test for rust-lang#22471
Add regression test for rust-lang#22471
where
clause #17994Add regression test for rust-lang#22471
Auto merge of #24979 - jooert:test-22471, r=pnkfelix