Skip to content

3 line ICE on stable and nightly (Unexpected type in full type resolver) #38404

Closed
@tupshin

Description

@tupshin

the following generates a compiler error on all current versions:

trait A<T>: std::ops::Add +Sized  {}
trait B<T>: A<T> {}
trait C<T>: A<B<T, Output = usize>> {}

RUST_BACKTRACE hangs for me, but emits:
error: internal compiler error: ../src/librustc/infer/resolve.rs:132: Unexpected type in full type resolver: FreshTy(0)
https://is.gd/lkcWgT

This is greatly cut down from a real world example, and a blocking issue for me

Metadata

Metadata

Assignees

Labels

A-trait-systemArea: Trait systemP-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions