1
Fork 0

Deny some late-bound ty/ct in some positions, add tests

This commit is contained in:
Michael Goulet 2023-02-06 23:53:24 +00:00
parent 915703ca7a
commit 95f35fe443
10 changed files with 205 additions and 4 deletions

View file

@ -270,10 +270,11 @@ where
| ty::Ref(..)
| ty::FnPtr(..)
| ty::Param(..)
| ty::Bound(..)
| ty::Error(_)
| ty::GeneratorWitness(..)
| ty::GeneratorWitnessMIR(..) => {}
ty::Bound(..) | ty::Placeholder(..) | ty::Infer(..) => {
ty::Placeholder(..) | ty::Infer(..) => {
bug!("unexpected type: {:?}", ty)
}
}