]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-24322.stderr
New upstream version 1.35.0+dfsg1
[rustc.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`.