Skip to content

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

Closed
@comex

Description

@comex
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    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

    Issue actions