1
Fork 0

Auto merge of #111047 - compiler-errors:rtn-no-ty-ct-params, r=spastorino

Emit an error when return-type-notation is used with type/const params

These are not intended to be supported initially, even though the compiler supports them internally...
This commit is contained in:
bors 2023-06-07 09:03:33 +00:00
commit e94bda3bf1
8 changed files with 100 additions and 44 deletions

View file

@ -129,7 +129,6 @@ pub enum TypeVariableOriginKind {
/// (before it has been determined).
// FIXME(eddyb) distinguish upvar inference variables from the rest.
ClosureSynthetic,
SubstitutionPlaceholder,
AutoDeref,
AdjustmentType,