1 error[E0308]: mismatched types
2 --> $DIR/issue-24322.rs:8:29
4 LL | let x: &fn(&B) -> u32 = &B::func;
5 | ^^^^^^^^ expected fn pointer, found fn item
7 = note: expected type `&for<'r> fn(&'r B) -> u32`
8 found type `&for<'r> fn(&'r B) -> u32 {B::func}`
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0308`.