// 故意编译失败:let 常量不能调用 mutating 方法。 // 复现:swiftc Diagnostics/MutatingLet.swift struct Counter { var value = 0 mutating func bump() { value += 1 } } let counter = Counter() counter.bump() print(counter.value)