slovo/tests/unsupported-match-container.diag
2026-05-22 08:38:43 +02:00

14 lines
555 B
Plaintext

(diagnostic
(schema slovo.diagnostic)
(version 1)
(severity error)
(code UnsupportedMatchContainer)
(message "match does not support option/result values in array containers")
(file "<fixture>")
(span
(bytes 51 63)
(range 5 17 5 29)
)
(hint "match a direct `(option i32)`, `(option i64)`, `(option u32)`, `(option u64)`, `(option f64)`, `(option bool)`, `(option string)`, `(result i32 i32)`, `(result i64 i32)`, `(result u32 i32)`, `(result u64 i32)`, `(result f64 i32)`, `(result bool i32)`, or `(result string i32)` value")
)