mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
909574e411
find the generic container rather than simply looking up for the assoc with const arg Fixes #132534 This issue is caused by mismatched generic parameters. Previously, it tried to find `T` in `trait X`, but after this change, it will find `T` in `fn a`. r? `@compiler-errors` as this assertion was introduced by you.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.