]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/issue-62895.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / parser / issue-62895.stderr
index 39ce980964b77f8b3349e8238222e459f2a657a4..e46152fad0e5e0bb11d1eb02d60000b2669779f8 100644 (file)
@@ -15,6 +15,7 @@ error: missing `fn` for function definition
    |
 LL | pub    g() -> is
    |    ^^^^
+   |
 help: add `fn` here to parse `g` as a public function
    |
 LL | pub fn g() -> is
@@ -39,9 +40,6 @@ LL | fn v() -> isize {
    |    -      ^^^^^ expected isize, found ()
    |    |
    |    implicitly returns `()` as its body has no tail or `return` expression
-   |
-   = note: expected type `isize`
-              found type `()`
 
 error: aborting due to 6 previous errors