summaryrefslogtreecommitdiffstats
path: root/tests/ui/cast/cast-rfc0401-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/cast/cast-rfc0401-2.stderr')
-rw-r--r--tests/ui/cast/cast-rfc0401-2.stderr9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/ui/cast/cast-rfc0401-2.stderr b/tests/ui/cast/cast-rfc0401-2.stderr
index 52f6af78a..dd90c3a97 100644
--- a/tests/ui/cast/cast-rfc0401-2.stderr
+++ b/tests/ui/cast/cast-rfc0401-2.stderr
@@ -1,8 +1,13 @@
-error[E0054]: cannot cast as `bool`
+error[E0054]: cannot cast `i32` as `bool`
--> $DIR/cast-rfc0401-2.rs:6:13
|
LL | let _ = 3 as bool;
- | ^^^^^^^^^ help: compare with zero instead: `3 != 0`
+ | ^^^^^^^^^
+ |
+help: compare with zero instead
+ |
+LL | let _ = 3 != 0;
+ | ~~~~
error: aborting due to previous error