]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-24322.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / issues / issue-24322.rs
1 struct B;
2
3 impl B {
4 fn func(&self) -> u32 { 42 }
5 }
6
7 fn main() {
8 let x: &fn(&B) -> u32 = &B::func; //~ ERROR mismatched types
9 }