Skip to content

Commit

Permalink
Fix ambiguous lifetime (#19)
Browse files Browse the repository at this point in the history
* Fix ambiguous lifetime

This type of ambiguous lifetime may shortly be outlawed by
rust-lang/rust#117967

Co-authored-by: Daniel Henry-Mantilla <[email protected]>
  • Loading branch information
adetaylor and danielhenrymantilla authored Jan 12, 2024
1 parent 3eaf17b commit 955e455
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 955e455

Please sign in to comment.