review comment: review wording or missing return error
This commit is contained in:
parent
5a54945b6f
commit
33d1082d6e
15 changed files with 22 additions and 21 deletions
|
|
@ -19,7 +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` a value
|
||||
| this function implicitly returns `()` as its body has no tail or `return` expression
|
||||
|
|
||||
= note: expected type `isize`
|
||||
found type `()`
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ error[E0308]: mismatched types
|
|||
LL | fn v() -> isize {
|
||||
| - ^^^^^ expected isize, found ()
|
||||
| |
|
||||
| this function's body doesn't `return` a value
|
||||
| this function implicitly returns `()` as its body has no tail or `return` expression
|
||||
|
|
||||
= note: expected type `isize`
|
||||
found type `()`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue