]> git.lizzy.rs Git - rust.git/commitdiff
update test/ui/static-lifetime.stderr with new error message
authorMichael Hewson <michael@michaelhewson.ca>
Thu, 9 Nov 2017 14:21:54 +0000 (09:21 -0500)
committerMichael Hewson <michael@michaelhewson.ca>
Thu, 9 Nov 2017 14:21:54 +0000 (09:21 -0500)
src/test/ui/static-lifetime.stderr

index f73dff4f73d0ee43ba06369bcfed4a5a6f3ca13a..adeabd91302ce9e6925b1d95e4c5f800337f5cd9 100644 (file)
@@ -1,10 +1,15 @@
-error[E0477]: the type `std::borrow::Cow<'a, A>` does not fulfill the required lifetime
+error[E0478]: lifetime bound not satisfied
   --> $DIR/static-lifetime.rs:13:20
    |
 13 | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
    |                    ^^^^^^^^^
    |
-   = note: type must satisfy the static lifetime
+note: lifetime parameter instantiated with the lifetime 'a as defined on the impl at 13:1
+  --> $DIR/static-lifetime.rs:13:1
+   |
+13 | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
+   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   = note: but lifetime parameter must outlive the static lifetime
 
 error: aborting due to previous error