# Diagnostics 两个文件**故意编译失败**,用来复现第 32 章「报错现场」的真实诊断。 ```bash swiftc -typecheck Diagnostics/FrameWidthString.swift # error: cannot convert value of type 'String' to expected argument type 'CGFloat' swiftc -typecheck Diagnostics/WrongAlignmentAxis.swift # error: type 'VerticalAlignment' has no member 'leading' ```