Skip to content

impl SuperTrait for T: SubTrait does not work #71

@mikeyhew

Description

@mikeyhew

The following works in Rust, but not in Chalk:

trait DynSized {}
trait Sized where Self: DynSized {}
impl<T> DynSized for T where T: Sized {}
struct i32 {}
impl Sized for i32 {}

For the goal i32: DynSized, Chalk currently returns "No possible solution", and it should return "Unique".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions