Files
swift-mirror/test/embedded/basic-errors-no-stdlib.swift

10 lines
298 B
Swift

// RUN: not %target-swift-frontend -emit-ir %s -parse-stdlib -enable-experimental-feature Embedded -wmo 2>&1 | %FileCheck %s
public protocol Player {}
struct Concrete: Player {}
// CHECK: error: existential can cause metadata allocation or locks
public func test() -> any Player {
Concrete()
}