Skip to content

fixed_map: derive(Key) treats alias as rigid #216

Open
@lcnr

Description

@lcnr

https://crater-reports.s3.amazonaws.com/pr-133502-13/try%233cddd79d4be3c8f1e937d09ca618d192abc69373/reg/fixed-map-0.9.5/log.txt

struct Outer;
struct Inner;
trait Id<T> {
    type This;
}
impl<T, U> Id<U> for T {
    type This = T;
}

fn free<T>(x: T) -> <T as Id<Inner>>::This
where
    <T as Id<Outer>>::This: Id<Inner, This = <T as Id<Inner>>::This>,
{
    x
}

compiles with old, errors with new.

Metadata

Metadata

Assignees

No one assigned

    Labels

    from-craterA regression found via a crater run, not part of our test suite

    Type

    No type

    Projects

    Status

    unknown

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions