We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31d3783 commit c046fdaCopy full SHA for c046fda
src/test/ui/static-lifetime.stderr
@@ -1,10 +1,15 @@
1
-error[E0477]: the type `std::borrow::Cow<'a, A>` does not fulfill the required lifetime
+error[E0478]: lifetime bound not satisfied
2
--> $DIR/static-lifetime.rs:13:20
3
|
4
13 | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
5
| ^^^^^^^^^
6
7
- = note: type must satisfy the static lifetime
+note: lifetime parameter instantiated with the lifetime 'a as defined on the impl at 13:1
8
+ --> $DIR/static-lifetime.rs:13:1
9
+ |
10
+13 | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
11
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
+ = note: but lifetime parameter must outlive the static lifetime
13
14
error: aborting due to previous error
15
0 commit comments