slovo/tests/unsafe-required-ffi-call.diag
2026-05-22 08:38:43 +02:00

22 lines
427 B
Plaintext

(diagnostic
(schema slovo.diagnostic)
(version 1)
(severity error)
(code UnsafeRequired)
(message "unsafe operation `ffi_call` requires an `unsafe` block")
(file "<fixture>")
(span
(bytes 37 51)
(range 5 3 5 17)
)
(hint "wrap the operation in `(unsafe ...)`")
(related
(span
(file "<fixture>")
(bytes 38 46)
(range 5 4 5 12)
(message "unsafe operation head")
)
)
)