Closed
Description
trait Foo {
type Assoc: Bar
where Self: Foo;
}
trait Bar {}
impl Foo for () {
type Assoc = ()
where Self: Foo;
}
This side-steps the check that associated type bounds may only be used if we have a param-env predicate that "roots" the associated type. See the doc comment on validate_alias_bound_self_from_param_env
.
Turns out this is not a complete solution.
Metadata
Metadata
Assignees
Labels
No labels