slovo/tests/enum-payload-struct-equality.diag
2026-05-22 08:38:43 +02:00

14 lines
427 B
Plaintext

(diagnostic
(schema slovo.diagnostic)
(version 1)
(severity error)
(code UnsupportedEnumEquality)
(message "enum equality is supported only for payloadless enums and enums whose payload type is direct `i32`, `i64`, `u32`, `u64`, `f64`, `bool`, or `string`")
(file "<fixture>")
(span
(bytes 121 213)
(range 13 3 14 48)
)
(hint "match the enum and compare fields after extracting the struct payload")
)