mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #66818 from kavon/noncopyable-and-raw-error
emit error when a noncopyable enum has a raw type
This commit is contained in:
@@ -3249,6 +3249,9 @@ ERROR(enum_raw_type_nonconforming_and_nonsynthable,none,
|
||||
"and conformance could not be synthesized", (Type, Type))
|
||||
NOTE(enum_declares_rawrep_with_raw_type,none,
|
||||
"%0 declares raw type %1, which implies RawRepresentable", (Type, Type))
|
||||
ERROR(enum_raw_type_nonconforming_and_noncopyable,none,
|
||||
"%0 declares raw type %1, but cannot yet conform to RawRepresentable "
|
||||
"because it is noncopyable", (Type, Type))
|
||||
ERROR(enum_raw_type_access,none,
|
||||
"enum %select{must be declared %select{"
|
||||
"%select{private|fileprivate|internal|package|%error|%error}1|private or fileprivate}3"
|
||||
|
||||
Reference in New Issue
Block a user