mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-28 03:24:11 +00:00
type error go brrrrrrrr Fixes #90444 when we relate something like: `fn(fn((), (), u32))` with `fn(fn((), (), ()))` we relate the inner fn ptrs: `fn((), (), u32)` with `fn((), (), ())` yielding a `TypeError::ArgumentSorts(_, 2)` which we then use as the `TypeError` for the `fn(fn(..))` which later causes the ICE as the `2` does not correspond to any input or output types in `fn(_)` r? `@estebank`
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.