diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2018-12-30 15:41:19 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2018-12-30 15:41:19 -0800 |
| commit | f62f540b4e81a4e67a39f199948406684a343f4a (patch) | |
| tree | 85e200adab3a6d9f9a45fa1eac7229311d38eb16 /src/test/ui/missing | |
| parent | 1f65dc07705e9463ffed0395894f1e7d63cec515 (diff) | |
| download | rust-f62f540b4e81a4e67a39f199948406684a343f4a.tar.gz rust-f62f540b4e81a4e67a39f199948406684a343f4a.zip | |
Point at function name span
Diffstat (limited to 'src/test/ui/missing')
| -rw-r--r-- | src/test/ui/missing/missing-return.stderr | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/ui/missing/missing-return.stderr b/src/test/ui/missing/missing-return.stderr index be86325de00..9e6ffd97312 100644 --- a/src/test/ui/missing/missing-return.stderr +++ b/src/test/ui/missing/missing-return.stderr @@ -2,7 +2,9 @@ error[E0308]: mismatched types --> $DIR/missing-return.rs:3:11 | LL | fn f() -> isize { } - | ^^^^^ expected isize, found () + | - ^^^^^ expected isize, found () + | | + | this function's body doesn't return the expected type | = note: expected type `isize` found type `()` |
