diff options
| author | Michael Hewson <michael@michaelhewson.ca> | 2017-11-09 09:21:54 -0500 |
|---|---|---|
| committer | Michael Hewson <michael@michaelhewson.ca> | 2017-11-09 09:21:54 -0500 |
| commit | c046fda312b5a23dd2c531967b6ce241c9cf3d63 (patch) | |
| tree | 92c833e380e10d0a3e7ff31592666ad5f51f3c61 | |
| parent | 31d3783050c1d09be1313ffdf6609dda7084cc98 (diff) | |
| download | rust-c046fda312b5a23dd2c531967b6ce241c9cf3d63.tar.gz rust-c046fda312b5a23dd2c531967b6ce241c9cf3d63.zip | |
update test/ui/static-lifetime.stderr with new error message
| -rw-r--r-- | src/test/ui/static-lifetime.stderr | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/test/ui/static-lifetime.stderr b/src/test/ui/static-lifetime.stderr index f73dff4f73d..adeabd91302 100644 --- a/src/test/ui/static-lifetime.stderr +++ b/src/test/ui/static-lifetime.stderr @@ -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 |
