summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hir_typeck/helpers.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hir_typeck/helpers.cpp b/src/hir_typeck/helpers.cpp
index fb7384a5..e8891100 100644
--- a/src/hir_typeck/helpers.cpp
+++ b/src/hir_typeck/helpers.cpp
@@ -2661,6 +2661,9 @@ bool TraitResolution::type_is_copy(const Span& sp, const ::HIR::TypeRef& ty) con
(Slice,
return false;
),
+ (Function,
+ return true;
+ ),
(Array,
return type_is_copy(sp, *e.inner);
)