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