Skip to content

ICE: expected goal term to be fully unconstrained #43

Open
@lcnr

Description

@lcnr
#![feature(type_alias_impl_trait)]

trait Id {
    type Assoc;
}
impl<T> Id for T {
    type Assoc = T;
}

type Tait where Tait : Id<Assoc = Tait> = impl Sized;

currently results in

thread 'rustc' panicked at 'expected goal term to be fully unconstrained: NoSolution', compiler/rustc_trait_selection/src/solve/project_goals.rs:129:26
[..]
query stack during panic:
#0 [param_env] computing normalized predicates of `Tait`
#1 [check_well_formed] checking that `Tait` is well-formed
#2 [check_mod_type_wf] checking that types are well-formed in top-level module
#3 [analysis] running analysis passes on this crate

https://rust.godbolt.org/z/8Y75K5Prr

Don't think we have a test for this 🤔 might be related to some overflow issue @compiler-errors previously discovered?

Metadata

Metadata

Labels

E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions