mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[embedded] Update wording on existential diagnostics, take 2
This commit is contained in:
@@ -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}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user