about summary refs log tree commit diff
path: root/tests/ui/error-codes
diff options
context:
space:
mode:
authorasquared31415 <34665709+asquared31415@users.noreply.github.com>2023-09-11 18:04:22 +0000
committerasquared31415 <34665709+asquared31415@users.noreply.github.com>2023-09-11 18:10:07 +0000
commite36adff4c24c1cd61fcc72c94cf9d312ff366dc1 (patch)
treea3fe3ea12dbe6b3bdebe485d167d37c9bd55719e /tests/ui/error-codes
parent3ebb5629d1a39345d37c4838d31dc7280384ea94 (diff)
downloadrust-e36adff4c24c1cd61fcc72c94cf9d312ff366dc1.tar.gz
rust-e36adff4c24c1cd61fcc72c94cf9d312ff366dc1.zip
add source type for invalid bool casts
Diffstat (limited to 'tests/ui/error-codes')
-rw-r--r--tests/ui/error-codes/E0054.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/error-codes/E0054.stderr b/tests/ui/error-codes/E0054.stderr
index 6b1092760fb..ea81f4476a7 100644
--- a/tests/ui/error-codes/E0054.stderr
+++ b/tests/ui/error-codes/E0054.stderr
@@ -1,4 +1,4 @@
-error[E0054]: cannot cast as `bool`
+error[E0054]: cannot cast `i32` as `bool`
   --> $DIR/E0054.rs:3:24
    |
 LL |     let x_is_nonzero = x as bool;