Skip to content

alias bound is unsound #9

@lcnr

Description

@lcnr

if we have type Assoc: OtherTrait.

  1. given <T as Trait>::Assoc, we can assume OtherTrait
  2. for this, we have to prove <T as Trait>::Assoc: OtherTrait inside of each impl

It feels like this should be unsound by using the assumption while proving that it holds, but may require more coinduction or something, idk.

There are sound alternatives to AliasBound candidates but they may slightly change inference or result in a performance regression.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions