diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-08-08 15:55:18 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-08-09 07:18:05 -0700 |
| commit | 33d1082d6e3cb9fe5e0fd090f52a3effa9871fce (patch) | |
| tree | a363eb2acc0ae2bc65399b14a2729844ebf80680 /src/test/ui/parser | |
| parent | 5a54945b6f637eadd4848874db39b49d2764839f (diff) | |
| download | rust-33d1082d6e3cb9fe5e0fd090f52a3effa9871fce.tar.gz rust-33d1082d6e3cb9fe5e0fd090f52a3effa9871fce.zip | |
review comment: review wording or missing return error
Diffstat (limited to 'src/test/ui/parser')
| -rw-r--r-- | src/test/ui/parser/issue-62881.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/parser/issue-62895.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/parser/issue-62881.stderr b/src/test/ui/parser/issue-62881.stderr index 11b8836a89a..40f64ec8fd0 100644 --- a/src/test/ui/parser/issue-62881.stderr +++ b/src/test/ui/parser/issue-62881.stderr @@ -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 `()` diff --git a/src/test/ui/parser/issue-62895.stderr b/src/test/ui/parser/issue-62895.stderr index d9d3baf6227..4c872d0c9d3 100644 --- a/src/test/ui/parser/issue-62895.stderr +++ b/src/test/ui/parser/issue-62895.stderr @@ -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 `()` |
