If a const is expected, resolve a const. If a type is expected, resolve a type. Don't try to resolve a type first falling back to consts.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.
If a const is expected, resolve a const. If a type is expected, resolve a type. Don't try to resolve a type first falling back to consts.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.