error[E0741]: using function pointers as const generic parameters is forbidden --> $DIR/issue-71382.rs:16:23 | LL | fn test(&self) { | ^^^^ error: aborting due to previous error For more information about this error, try `rustc --explain E0741`.