_ is just a placeholder that can mean anything and helps clarify the error message.
In this case, he said that he was expecting image::Luma<u8>, but actually found a variable reference ( &mut). It doesn't matter what it is; he can &mut <something>never be matched with image::Luma<i>.
If instead he said ...found type &mut (u32, u32, &mut T: SomeTrait)or similar, I think it will be harder to bring closer to the immediate problem.
You cannot pass a link to a function that expects a copied (or moved) full object.
source
share