“Expected fn item, found a different fn item” when working with function pointers
Function item vs. function pointer When you refer to a function by its name, the type you get is not a function pointer (e.g. fn(u32) -> bool). Instead, you get an a zero-sized value of the function’s item type (e.g. fn(u32) -> bool {foo}). The value is zero-sized because it doesn’t store the actual function … Read more