Update error message.

This commit is contained in:
Christoffer Lerno
2025-07-08 00:24:29 +02:00
parent 10fc94aaa7
commit a2122e0153
2 changed files with 21 additions and 11 deletions

View File

@@ -4,6 +4,7 @@ fn int? test() => 1;
fn int main()
{
test()!; // #error: This expression is doing a rethrow
test()!; // #error: Did you intend to use '!!' instead
int? a = test()!; // #error: maybe you added '!' by mistake?
return 0;
}