Skip to content

File typecks but shouldn't with trait error in associated type #61

@petervdonovan

Description

@petervdonovan

Problem

The following file has an associated type with an unsatisfied trait bound:

pub trait ConsList {
    type Cdr: ConsList;
}
impl ConsList for () {
    type Cdr = usize;
}

Argus is not able to help with it, even though with -Znext-solver=globally I get the expected error message, "the trait bound usize: ConsList is not satisfied".

Logs

OS: linux (6.8.0-62-generic)
VSCode: 1.101.1
Error message

File typecks but shouldn't: /home/peter/issue-61/src/lib.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions