diff options
Diffstat (limited to 'crates/hir_ty/src/infer/pat.rs')
-rw-r--r-- | crates/hir_ty/src/infer/pat.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/infer/pat.rs b/crates/hir_ty/src/infer/pat.rs index f1316415f..10df8d8cb 100644 --- a/crates/hir_ty/src/infer/pat.rs +++ b/crates/hir_ty/src/infer/pat.rs | |||
@@ -211,7 +211,7 @@ impl<'a> InferenceContext<'a> { | |||
211 | return inner_ty; | 211 | return inner_ty; |
212 | } | 212 | } |
213 | Pat::Slice { prefix, slice, suffix } => { | 213 | Pat::Slice { prefix, slice, suffix } => { |
214 | let (container_ty, elem_ty): (fn(_) -> _, _) = match expected.interned(&Interner) { | 214 | let (container_ty, elem_ty): (fn(_) -> _, _) = match expected.kind(&Interner) { |
215 | TyKind::Array(st) => (TyKind::Array, st.clone()), | 215 | TyKind::Array(st) => (TyKind::Array, st.clone()), |
216 | TyKind::Slice(st) => (TyKind::Slice, st.clone()), | 216 | TyKind::Slice(st) => (TyKind::Slice, st.clone()), |
217 | _ => (TyKind::Slice, self.err_ty()), | 217 | _ => (TyKind::Slice, self.err_ty()), |