Skip to content

Commit c046fda

Browse files
committed
update test/ui/static-lifetime.stderr with new error message
1 parent 31d3783 commit c046fda

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/test/ui/static-lifetime.stderr

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
error[E0477]: the type `std::borrow::Cow<'a, A>` does not fulfill the required lifetime
1+
error[E0478]: lifetime bound not satisfied
22
--> $DIR/static-lifetime.rs:13:20
33
|
44
13 | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
55
| ^^^^^^^^^
66
|
7-
= note: type must satisfy the static lifetime
7+
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
813

914
error: aborting due to previous error
1015

0 commit comments

Comments
 (0)