]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/liveness/liveness-missing-ret2.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / liveness / liveness-missing-ret2.stderr
index ab7d411880bbafaf16034d2563a456d2d8c1db06..499dbf10ede28ee7bf8b67e3c8fe97a6f070c10f 100644 (file)
@@ -4,10 +4,7 @@ error[E0308]: mismatched types
 LL | fn f() -> isize {
    |    -      ^^^^^ expected isize, found ()
    |    |
-   |    this function's body doesn't return
-   |
-   = note: expected type `isize`
-              found type `()`
+   |    implicitly returns `()` as its body has no tail or `return` expression
 
 error: aborting due to previous error