// 故意编译失败:@Published 只能用于类属性。 // 复现:swiftc -typecheck Diagnostics/PublishedInStruct.swift import Combine struct Model { @Published var query = "" }