diff --git a/src/lib.rs b/src/lib.rs index b0a12c7..a93fa11 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -52,12 +52,12 @@ pub struct FieldOffset( /// of.apply(foo) /// } /// ``` - PhantomData<(PhantomContra, U, PinFlag)>, + PhantomData<(PhantomFn, PinFlag)>, ); /// `fn` cannot appear directly in a type that need to be const. /// Workaround that with an indirection -struct PhantomContra(fn(T)); +struct PhantomFn(fn(T) -> U); /// Type that can be used in the `PinFlag` parameter of `FieldOffset` to specify that /// this projection is valid on Pin types.