Name resolution error in `for` Trait bound
Open
@P-E-P is already working on this.
Since Jul 10, 2025.
bug
name resolution
- Dominant language
- C++
- Stars
- 2.9k
- Forks
- 231
- Avg merge
- 19h 55m
- Merged PRs (30d)
- 67
Description
fn trait_as_argument<T: for<'a> Trait<'a, T>>(t: T) -> i32 {
0
}
The inner T in Trait<'a, T> is not found.
Works in rustc 1.49
@CohenArthur
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.