]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-19991.stderr
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-19991.stderr
index 4c6d150229a3e6910b793067fdb59d5a0dc3f2a3..d9ea910adef5027c7302e7b5671bd319f33256c6 100644 (file)
@@ -6,11 +6,14 @@ LL | |
 LL | |
 LL | |
 LL | |         765
+   | |         --- found here
 LL | |     };
    | |_____^ expected (), found integer
    |
    = note: expected type `()`
               found type `{integer}`
+   = note: `if` expressions without `else` evaluate to `()`
+   = help: consider adding an `else` block that evaluates to the expected type
 
 error: aborting due to previous error