about summary refs log tree commit diff
path: root/tests/ui/error-codes
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2023-09-15 15:54:47 +0000
committerclubby789 <jamie@hill-daniel.co.uk>2023-09-18 14:03:57 +0000
commitc2841e2a1eb2712d580ef83cb7986151ece8c516 (patch)
treecb3059443fb78785f0a614edd7dd2605c40607cd /tests/ui/error-codes
parentdcb3e70861f2958c3925e8398bd3e41a88114398 (diff)
downloadrust-c2841e2a1eb2712d580ef83cb7986151ece8c516.tar.gz
rust-c2841e2a1eb2712d580ef83cb7986151ece8c516.zip
Migrate 'cast to bool' diagnostic
Diffstat (limited to 'tests/ui/error-codes')
-rw-r--r--tests/ui/error-codes/E0054.stderr7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/ui/error-codes/E0054.stderr b/tests/ui/error-codes/E0054.stderr
index ea81f4476a7..0a4adabbaf6 100644
--- a/tests/ui/error-codes/E0054.stderr
+++ b/tests/ui/error-codes/E0054.stderr
@@ -2,7 +2,12 @@ error[E0054]: cannot cast `i32` as `bool`
   --> $DIR/E0054.rs:3:24
    |
 LL |     let x_is_nonzero = x as bool;
-   |                        ^^^^^^^^^ help: compare with zero instead: `x != 0`
+   |                        ^^^^^^^^^
+   |
+help: compare with zero instead
+   |
+LL |     let x_is_nonzero = x != 0;
+   |                          ~~~~
 
 error: aborting due to previous error