5af6624def
Add one more case to avoid ICE Fix for the #94291, added one more case to related function to avoid ICE. Not sure if my test is in the correct place 😅
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.