Skip to content

Commit f1612cc

Browse files
authored
Merge pull request #1861 from JakobDegen/turbofish
Fix lifetime on `as_turbofish`
2 parents 432b303 + d04eea1 commit f1612cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ generics_wrapper_impls!(Turbofish);
344344
#[cfg(feature = "printing")]
345345
impl<'a> TypeGenerics<'a> {
346346
/// Turn a type's generics like `<X, Y>` into a turbofish like `::<X, Y>`.
347-
pub fn as_turbofish(&self) -> Turbofish {
347+
pub fn as_turbofish(&self) -> Turbofish<'a> {
348348
Turbofish(self.0)
349349
}
350350
}

0 commit comments

Comments
 (0)