6c7575721f
Accept `ReStatic` for RPITIT
Fixes #112094
Regression in 8216b7f229
If there is a better suggestion, I will go with that.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.