Make safe error messages consistent (#20654)

Co-authored-by: Dennis Korpel <dennis@sarc.nl>
This commit is contained in:
Dennis 2025-01-08 06:46:38 +01:00 committed by GitHub
parent 0f35acb452
commit 9b94878c85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
104 changed files with 394 additions and 377 deletions

View file

@ -1,7 +1,7 @@
/*
TEST_OUTPUT:
---
fail_compilation/safe_pointer_index.d(11): Error: `@safe` function `f` cannot index pointer `x`
fail_compilation/safe_pointer_index.d(11): Error: indexing pointer `x` is not allowed in a `@safe` function
---
*/