about summary refs log tree commit diff
path: root/tests/ui/unsafe
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-11-16 00:22:54 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-11-16 20:03:31 +0000
commitc09c73b99622905e8df074b81377c9ca82467dce (patch)
tree10113c18791395803491209ea0760e17b4bd320e /tests/ui/unsafe
parent629a69f3e2728251774f825ff54cb642b38249df (diff)
downloadrust-c09c73b99622905e8df074b81377c9ca82467dce.tar.gz
rust-c09c73b99622905e8df074b81377c9ca82467dce.zip
Reword suggestion message
Diffstat (limited to 'tests/ui/unsafe')
-rw-r--r--tests/ui/unsafe/unsafe-block-without-braces.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/unsafe/unsafe-block-without-braces.stderr b/tests/ui/unsafe/unsafe-block-without-braces.stderr
index d29e49d73a6..3d8234c15e7 100644
--- a/tests/ui/unsafe/unsafe-block-without-braces.stderr
+++ b/tests/ui/unsafe/unsafe-block-without-braces.stderr
@@ -6,7 +6,7 @@ LL |     unsafe //{
 LL |         std::mem::transmute::<f32, u32>(1.0);
    |         ^^^ expected `{`
    |
-help: try placing this code inside a block
+help: you might have meant to write this as part of a block
    |
 LL |         { std::mem::transmute::<f32, u32>(1.0); }
    |         +                                       +