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

ICE - compute_bounds(): resolve didn't resolve the type parameter identifier in a where clause #17994

Closed
comex opened this issue Oct 13, 2014 · 2 comments
Labels
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

@comex
Copy link
Contributor

comex commented Oct 13, 2014

trait Tr {}
type Huh<T> where T: Tr = isize;
fn main() {}

results in:

error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'compute_bounds(): resolve didn't resolve the type parameter identifier in a `where` clause', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libcore/option.rs:315
@kmcallister kmcallister added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Jan 9, 2015
@steveklabnik
Copy link
Member

hello.rs:2:22: 2:24 error: internal error looking up a definition
hello.rs:2 type Huh<T> where T: Tr = int;
                                ^~

@ghost ghost added the E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. label Apr 16, 2015
@jooert
Copy link
Contributor

jooert commented May 2, 2015

Seems to be the same as #22471, the internal error isn't exposed anymore, test added in #24979. The code example given here is now failing with

test.rs:2:27: 2:32 error: type parameter `T` is unused [E0091]
test.rs:2 type Huh<T> where T: Tr = isize;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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) ❄️
Projects
None yet
Development

No branches or pull requests

4 participants