Trait clauses using its supertrait as part of its own wf

Open
#5 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
rust
Domain
compilers

Research direction

Start by reproducing the minimized Rust example in the issue and compare it with the windows-core definitions in type.rs and use in ref.rs. Trace how the project handles trait clauses involving a supertrait's associated type. Done means the behavior for this example is understood and the issue's intended handling is implemented or documented.

Written by the indexing model from the issue text.

Description

Minimized from a real crate (windows-core, defined here and used here):

pub trait HasAssoc {
    type Assoc;
}

pub trait Trait<X>: HasAssoc {}

fn foo<T: Trait<<T as HasAssoc>::Assoc>>() {}
Dominant language
No language data
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-lang/project-dictionary-passing

All issues in rust-lang/project-dictionary-passing

Similar issues

More Compilers issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.