Skip to content

Commit e631205

Browse files
committed
add more specific versions of the noncopyable generics error diagnostic
1 parent 9d342f1 commit e631205

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7261,7 +7261,15 @@ ERROR(self_ownership_specifier_copyable,none,
72617261
(SelfAccessKind, DescriptiveDeclKind))
72627262
ERROR(ownership_specifier_nonescaping_closure,none,
72637263
"'%0' cannot be applied to nonescaping closure", (StringRef))
7264-
ERROR(noncopyable_generics, none, "noncopyable type %0 cannot be used with generics yet", (Type))
7264+
ERROR(noncopyable_generics, none,
7265+
"noncopyable type %0 cannot be used with generics yet",
7266+
(Type))
7267+
ERROR(noncopyable_generics_variadic, none,
7268+
"noncopyable type %0 cannot be used within a variadic type yet",
7269+
(Type))
7270+
ERROR(noncopyable_generics_specific, none,
7271+
"noncopyable type %0 cannot be used with generic type %1 yet",
7272+
(Type, Type))
72657273
ERROR(noncopyable_effectful_getter,none,
72667274
"%0 of noncopyable type cannot be 'async' or 'throws'", (DescriptiveDeclKind))
72677275
ERROR(noncopyable_enums_do_not_support_indirect,none,

0 commit comments

Comments
 (0)