From 955e45508c7c1b9b016d49781146abec5488851c Mon Sep 17 00:00:00 2001 From: Adrian Taylor Date: Fri, 12 Jan 2024 14:10:06 +0000 Subject: [PATCH] Fix ambiguous lifetime (#19) * Fix ambiguous lifetime This type of ambiguous lifetime may shortly be outlawed by https://github.com/rust-lang/rust/pull/117967 Co-authored-by: Daniel Henry-Mantilla --- tests/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/main.rs b/tests/main.rs index 5b224e9..16baa90 100644 --- a/tests/main.rs +++ b/tests/main.rs @@ -238,8 +238,8 @@ for &'next mut [T; WIDTH] ; - fn next (self: &'_ mut WindowsMut<&'lt mut [T], WIDTH>) - -> Option<&'_ mut [T; WIDTH]> + fn next<'next> (self: &'next mut WindowsMut<&'lt mut [T], WIDTH>) + -> Option<&'next mut [T; WIDTH]> { let to_yield = self.slice