diff --git a/src/lib.rs b/src/lib.rs index 4fb110c8c9..8555682419 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -148,7 +148,7 @@ impl Resource> { #[cfg(not(thumbv6m))] pub fn mock(&'static self, _prio: &C, _curr_ceil: &C, f: F) -> R where - F: FnOnce(Ref, &C) -> R, + F: FnOnce(Ref, &C<>::Output>) -> R, PRIOTASK: Unsigned, CURRCEIL: Unsigned, CEILING: GreaterThanOrEqual + Max + Level + Unsigned,