diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-09-12 06:34:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-12 06:34:46 +0200 |
| commit | 32cf2c4b68ac710c5ffab60ecae7852a00ca87c0 (patch) | |
| tree | d4242dff77270924083a38b8c5e25d7b3da23d31 /tests/ui/error-codes | |
| parent | 8e157ecd65f5c97f334b10445960d3a4094fb510 (diff) | |
| parent | e36adff4c24c1cd61fcc72c94cf9d312ff366dc1 (diff) | |
| download | rust-32cf2c4b68ac710c5ffab60ecae7852a00ca87c0.tar.gz rust-32cf2c4b68ac710c5ffab60ecae7852a00ca87c0.zip | |
Rollup merge of #115765 - asquared31415:cast_diag, r=WaffleLapkin
Add source type for invalid bool casts Also adds tests for casting various types to `bool` that were otherwise untested. r? `@WaffleLapkin`
Diffstat (limited to 'tests/ui/error-codes')
| -rw-r--r-- | tests/ui/error-codes/E0054.stderr | 2 |
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; |
