Revert "structural_match: non-structural-match ty closures"
Reverts #73353
This commit is contained in:
parent
c34fb5167e
commit
ba1e13fa66
2 changed files with 1 additions and 8 deletions
|
@ -133,9 +133,6 @@ impl<'a, 'tcx> ConstToPat<'a, 'tcx> {
|
|||
traits::NonStructuralMatchTy::Generator => {
|
||||
"generators cannot be used in patterns".to_string()
|
||||
}
|
||||
traits::NonStructuralMatchTy::Closure => {
|
||||
"closures cannot be used in patterns".to_string()
|
||||
}
|
||||
traits::NonStructuralMatchTy::Param => {
|
||||
bug!("use of a constant whose type is a parameter inside a pattern")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue