diff --git a/src/box_scope.rs b/src/box_scope.rs index 9eb768a..3bf0c9c 100644 --- a/src/box_scope.rs +++ b/src/box_scope.rs @@ -126,7 +126,7 @@ where /// - If the passed function panics. /// - If the underlying future panics. /// - If the underlying future awaits for a future other than the [`crate::FrozenFuture`]. - pub fn enter<'borrow, Output: 'borrow, G>(&'borrow mut self, f: G) -> Output + pub fn enter<'borrow, Output, G>(&'borrow mut self, f: G) -> Output where G: for<'a> FnOnce(&'borrow mut >::Family) -> Output, { diff --git a/src/raw_scope.rs b/src/raw_scope.rs index 9ce112e..7c676a2 100644 --- a/src/raw_scope.rs +++ b/src/raw_scope.rs @@ -184,7 +184,7 @@ where /// 2. `this` verifies the guarantees of `Pin` (one of its fields is pinned in this function) /// 3. No other exclusive reference to the frozen value. In particular, no concurrent calls to this function. #[allow(unused_unsafe)] - pub(crate) unsafe fn enter<'borrow, Output: 'borrow, G>(this: NonNull, f: G) -> Output + pub(crate) unsafe fn enter<'borrow, Output, G>(this: NonNull, f: G) -> Output where G: for<'a> FnOnce(&'borrow mut >::Family) -> Output, {