Files
swift-mirror/test/Unsafe/unsafe_in_unsafe.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
}