// 故意编译失败:T 没有 Numeric 约束,不能用 +。 // 复现:swiftc Diagnostics/MissingNumeric.swift func add(_ lhs: T, _ rhs: T) -> T { lhs + rhs } print(add(1, 2))