diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2018-06-27 16:27:47 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2018-06-28 11:12:42 -0700 |
| commit | 5436a5c55ac6b08bd0bb729b7da55915e6e78fe6 (patch) | |
| tree | 4fde2ac606684d1f96cfbdad8e046f18b19ab314 /src/test/ui/nll | |
| parent | cd8ca262570d856d354d4ea28632197ca8be15b9 (diff) | |
| download | rust-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.stderr | 12 |
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<'_> |
