2017-11-09 14:21:54 +00:00
|
|
|
error[E0478]: lifetime bound not satisfied
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/static-lifetime.rs:3:20
|
2017-05-09 18:51:18 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
|
2017-05-09 18:51:18 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2021-10-05 12:11:51 +00:00
|
|
|
note: lifetime parameter instantiated with the lifetime `'a` as defined here
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/static-lifetime.rs:3:6
|
2017-11-09 14:21:54 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
|
2018-06-27 23:44:39 +00:00
|
|
|
| ^^
|
2017-11-09 14:21:54 +00:00
|
|
|
= note: but lifetime parameter must outlive the static lifetime
|
2017-05-09 18:51:18 +00:00
|
|
|
|
2025-02-15 04:18:30 +00:00
|
|
|
error[E0803]: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements
|
2024-07-18 15:37:19 +00:00
|
|
|
--> $DIR/static-lifetime.rs:3:34
|
|
|
|
|
|
|
|
|
LL | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: first, the lifetime cannot outlive the lifetime `'a` as defined here...
|
|
|
|
--> $DIR/static-lifetime.rs:3:6
|
|
|
|
|
|
|
|
|
LL | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
|
|
|
|
| ^^
|
|
|
|
note: ...so that the types are compatible
|
|
|
|
--> $DIR/static-lifetime.rs:3:34
|
|
|
|
|
|
|
|
|
LL | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
= note: expected `<Cow<'a, A> as Arbitrary>`
|
|
|
|
found `<Cow<'_, A> as Arbitrary>`
|
|
|
|
= note: but, the lifetime must be valid for the static lifetime...
|
|
|
|
note: ...so that the declared lifetime parameter bounds are satisfied
|
|
|
|
--> $DIR/static-lifetime.rs:3:34
|
|
|
|
|
|
|
|
|
LL | impl<'a, A: Clone> Arbitrary for ::std::borrow::Cow<'a, A> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2017-05-09 18:51:18 +00:00
|
|
|
|
2025-02-15 04:18:30 +00:00
|
|
|
Some errors have detailed explanations: E0478, E0803.
|
2024-07-18 15:37:19 +00:00
|
|
|
For more information about an error, try `rustc --explain E0478`.
|