about summary refs log tree commit diff
path: root/tests/ui/error-codes
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-06-06 20:52:34 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-06-06 20:52:34 +0000
commit3c049e21ca75134b7cab84507c93c18ce38ff275 (patch)
treef1487fad2b92cda5c8ddd9a6672fc5f80e60b9b4 /tests/ui/error-codes
parent24dcfaf71ffe08a0b5acfcc5b5b4d2419e79b847 (diff)
downloadrust-3c049e21ca75134b7cab84507c93c18ce38ff275.tar.gz
rust-3c049e21ca75134b7cab84507c93c18ce38ff275.zip
reword suggestion message
Diffstat (limited to 'tests/ui/error-codes')
-rw-r--r--tests/ui/error-codes/E0604.stderr2
-rw-r--r--tests/ui/error-codes/E0620.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/error-codes/E0604.stderr b/tests/ui/error-codes/E0604.stderr
index b949ed973cd..67bbb25958f 100644
--- a/tests/ui/error-codes/E0604.stderr
+++ b/tests/ui/error-codes/E0604.stderr
@@ -4,7 +4,7 @@ error[E0604]: only `u8` can be cast as `char`, not `u32`
 LL |     1u32 as char;
    |     ^^^^^^^^^^^^ invalid cast
    |
-help: try `char::from_u32` instead
+help: consider using `char::from_u32` instead
    |
 LL -     1u32 as char;
 LL +     char::from_u32(1u32);
diff --git a/tests/ui/error-codes/E0620.stderr b/tests/ui/error-codes/E0620.stderr
index b2efe02f3aa..696407c6f7e 100644
--- a/tests/ui/error-codes/E0620.stderr
+++ b/tests/ui/error-codes/E0620.stderr
@@ -4,7 +4,7 @@ error[E0620]: cast to unsized type: `&[usize; 2]` as `[usize]`
 LL |     let _foo = &[1_usize, 2] as [usize];
    |                ^^^^^^^^^^^^^^^^^^^^^^^^
    |
-help: try casting to a reference instead
+help: consider casting to a reference instead
    |
 LL |     let _foo = &[1_usize, 2] as &[usize];
    |                                 +