]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/issue-62881.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / parser / issue-62881.stderr
index 85c3575fd92885dfae2255072ccbc19b81de9c92..ddb97b40e95902fdd64a7144e2b345389ed6ad55 100644 (file)
@@ -19,10 +19,7 @@ error[E0308]: mismatched types
 LL | fn f() -> isize { fn f() -> isize {} pub f<
    |                      -      ^^^^^ 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 3 previous errors