about summary refs log tree commit diff
path: root/src/test/ui/coercion
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2018-12-30 15:41:19 -0800
committerEsteban Küber <esteban@kuber.com.ar>2018-12-30 15:41:19 -0800
commitf62f540b4e81a4e67a39f199948406684a343f4a (patch)
tree85e200adab3a6d9f9a45fa1eac7229311d38eb16 /src/test/ui/coercion
parent1f65dc07705e9463ffed0395894f1e7d63cec515 (diff)
downloadrust-f62f540b4e81a4e67a39f199948406684a343f4a.tar.gz
rust-f62f540b4e81a4e67a39f199948406684a343f4a.zip
Point at function name span
Diffstat (limited to 'src/test/ui/coercion')
-rw-r--r--src/test/ui/coercion/coercion-missing-tail-expected-type.stderr8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/test/ui/coercion/coercion-missing-tail-expected-type.stderr b/src/test/ui/coercion/coercion-missing-tail-expected-type.stderr
index 27f0540e36e..9ace5b8ad3a 100644
--- a/src/test/ui/coercion/coercion-missing-tail-expected-type.stderr
+++ b/src/test/ui/coercion/coercion-missing-tail-expected-type.stderr
@@ -2,7 +2,9 @@ error[E0308]: mismatched types
   --> $DIR/coercion-missing-tail-expected-type.rs:3:24
    |
 LL | fn plus_one(x: i32) -> i32 { //~ ERROR mismatched types
-   |                        ^^^ expected i32, found ()
+   |    --------            ^^^ expected i32, found ()
+   |    |
+   |    this function's body doesn't return the expected type
 LL |     x + 1;
    |          - help: consider removing this semicolon
    |
@@ -13,7 +15,9 @@ error[E0308]: mismatched types
   --> $DIR/coercion-missing-tail-expected-type.rs:7:13
    |
 LL | fn foo() -> Result<u8, u64> { //~ ERROR mismatched types
-   |             ^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found ()
+   |    ---      ^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found ()
+   |    |
+   |    this function's body doesn't return the expected type
 LL |     Ok(1);
    |          - help: consider removing this semicolon
    |