// 故意编译失败:weak 只能修饰类或类约束协议。 // 复现:swiftc Diagnostics/WeakOnStruct.swift struct Point { let x: Int } weak var point: Point?