// 故意编译失败:@Model 只能用于类,结构体没有稳定身份。 // 复现:swiftc -typecheck Diagnostics/ModelOnStruct.swift import SwiftData @Model struct Book { var title: String }