about summary refs log tree commit diff
path: root/src/test/ui/nll
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2018-06-27 16:27:47 -0700
committerEsteban Küber <esteban@kuber.com.ar>2018-06-28 11:12:42 -0700
commit5436a5c55ac6b08bd0bb729b7da55915e6e78fe6 (patch)
tree4fde2ac606684d1f96cfbdad8e046f18b19ab314 /src/test/ui/nll
parentcd8ca262570d856d354d4ea28632197ca8be15b9 (diff)
downloadrust-5436a5c55ac6b08bd0bb729b7da55915e6e78fe6.tar.gz
rust-5436a5c55ac6b08bd0bb729b7da55915e6e78fe6.zip
Point to lifetime in fn definition on lifetime error note
Diffstat (limited to 'src/test/ui/nll')
-rw-r--r--src/test/ui/nll/normalization-bounds-error.stderr12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/ui/nll/normalization-bounds-error.stderr b/src/test/ui/nll/normalization-bounds-error.stderr
index 970384f9d56..3548219361f 100644
--- a/src/test/ui/nll/normalization-bounds-error.stderr
+++ b/src/test/ui/nll/normalization-bounds-error.stderr
@@ -4,16 +4,16 @@ error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'d` d
 LL | fn visit_seq<'d, 'a: 'd>() -> <&'a () as Visitor<'d>>::Value {}
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
-note: first, the lifetime cannot outlive the lifetime 'd as defined on the function body at 23:1...
-  --> $DIR/normalization-bounds-error.rs:23:1
+note: first, the lifetime cannot outlive the lifetime 'd as defined on the function body at 23:14...
+  --> $DIR/normalization-bounds-error.rs:23:14
    |
 LL | fn visit_seq<'d, 'a: 'd>() -> <&'a () as Visitor<'d>>::Value {}
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-note: ...but the lifetime must also be valid for the lifetime 'a as defined on the function body at 23:1...
-  --> $DIR/normalization-bounds-error.rs:23:1
+   |              ^^
+note: ...but the lifetime must also be valid for the lifetime 'a as defined on the function body at 23:18...
+  --> $DIR/normalization-bounds-error.rs:23:18
    |
 LL | fn visit_seq<'d, 'a: 'd>() -> <&'a () as Visitor<'d>>::Value {}
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   |                  ^^
    = note: ...so that the types are compatible:
            expected Visitor<'d>
               found Visitor<'_>