mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
13 lines
243 B
Swift
13 lines
243 B
Swift
// RUN: %target-typecheck-verify-swift -enable-experimental-feature AllowUnsafeAttribute -print-diagnostic-groups
|
|
|
|
// REQUIRES: swift_feature_AllowUnsafeAttribute
|
|
|
|
|
|
protocol P { }
|
|
|
|
struct X: @unsafe P { }
|
|
|
|
func returnMe(x: X) -> any P {
|
|
x
|
|
}
|