// 故意编译失败:没有满足协议要求。 // 复现:swiftc Diagnostics/MissingRequirement.swift protocol P { func f() -> Int } struct S: P {} print(S().f())