diff --git a/bitfield/src/pack.rs b/bitfield/src/pack.rs index 4ee0f02a..9e1762d8 100644 --- a/bitfield/src/pack.rs +++ b/bitfield/src/pack.rs @@ -607,7 +607,7 @@ macro_rules! make_packers { /// /// The two ranges must be the same size. This can be asserted /// by the `assert_valid` method on the returned pair type. - pub const fn pair_with(&self, dst: Self) -> $Pair { + pub const fn pair_with(&self, dst: $Pack) -> $Pair { // TODO(eliza): validate that `dst.shift + self.bits() < N_BITS` in // const fn somehow lol let (dst_shl, dst_shr) = if dst.shift > self.shift {