diff options
| author | Michael Goulet <michael@errs.io> | 2025-06-25 16:11:28 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-06-26 03:43:01 +0000 |
| commit | 59e1a3cbf589032f95eb1c9453025cca6eee2420 (patch) | |
| tree | 66ffe8abfee2d48f5794609359d2d031becff964 /tests/ui/inference | |
| parent | bc4376fa73b636eb6f2c7d48b1f731d70f022c4b (diff) | |
| download | rust-59e1a3cbf589032f95eb1c9453025cca6eee2420.tar.gz rust-59e1a3cbf589032f95eb1c9453025cca6eee2420.zip | |
Simplify IfCause
Diffstat (limited to 'tests/ui/inference')
| -rw-r--r-- | tests/ui/inference/deref-suggestion.stderr | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/tests/ui/inference/deref-suggestion.stderr b/tests/ui/inference/deref-suggestion.stderr index 096989db0b4..8ccd28198af 100644 --- a/tests/ui/inference/deref-suggestion.stderr +++ b/tests/ui/inference/deref-suggestion.stderr @@ -164,21 +164,18 @@ LL | *b error[E0308]: `if` and `else` have incompatible types --> $DIR/deref-suggestion.rs:69:12 | -LL | let val = if true { - | ________________- -LL | | *a - | | -- expected because of this -LL | | } else if true { - | | ____________^ -LL | || -LL | || b -LL | || } else { -LL | || &0 -LL | || }; - | || ^ - | ||_____| - | |_____`if` and `else` have incompatible types - | expected `i32`, found `&{integer}` +LL | let val = if true { + | ------- `if` and `else` have incompatible types +LL | *a + | -- expected because of this +LL | } else if true { + | ____________^ +LL | | +LL | | b +LL | | } else { +LL | | &0 +LL | | }; + | |_____^ expected `i32`, found `&{integer}` error[E0308]: mismatched types --> $DIR/deref-suggestion.rs:81:15 |
