From da62b0359e6d197acc200c70cae0f42b5ce25632 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 5 Nov 2024 09:53:23 +0100 Subject: [PATCH] Add lifetime bound for trait impl as required on older toolchains --- src/foreign/alloc/borrow.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/foreign/alloc/borrow.rs b/src/foreign/alloc/borrow.rs index 9f058e4..b5b1e22 100644 --- a/src/foreign/alloc/borrow.rs +++ b/src/foreign/alloc/borrow.rs @@ -5,7 +5,7 @@ use { impl<'a, A> Arbitrary<'a> for Cow<'a, A> where - A: ToOwned + ?Sized, + A: ToOwned + ?Sized + 'a, ::Owned: Arbitrary<'a>, { fn arbitrary(u: &mut Unstructured<'a>) -> Result {