]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-24322.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / 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(&B) -> u32`, found `&fn(&B) -> u32 {B::func}`
6 | |
7 | expected due to this
8 |
9 = note: expected reference `&for<'a> fn(&'a B) -> u32`
10 found reference `&for<'a> fn(&'a B) -> u32 {B::func}`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.