Deny some late-bound ty/ct in some positions, add tests
This commit is contained in:
parent
915703ca7a
commit
95f35fe443
10 changed files with 205 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue