[embedded] Update wording on existential diagnostics, take 2

This commit is contained in:
Kuba Mracek
2023-10-14 10:55:48 -07:00
parent bbe111cca6
commit 30046b1f8d
4 changed files with 5 additions and 5 deletions

View File

@@ -4,6 +4,6 @@ public protocol Player {}
struct Concrete: Player {}
public func test() -> any Player {
Concrete() // expected-error {{using values of protocol type 'any Player' is not allowed in embedded Swift}}
Concrete() // expected-error {{cannot use a value of protocol type 'any Player' in embedded Swift}}
// expected-note@-1 {{called from here}}
}