rust/src/test/ui/issues/issue-24322.stderr

13 lines
443 B
Plaintext
Raw Normal View History

2018-07-15 16:11:54 -05:00
error[E0308]: mismatched types
2018-12-25 09:56:47 -06:00
--> $DIR/issue-24322.rs:8:29
2018-07-15 16:11:54 -05:00
|
LL | let x: &fn(&B) -> u32 = &B::func; //~ ERROR mismatched types
| ^^^^^^^^ expected fn pointer, found fn item
|
= note: expected type `&for<'r> fn(&'r B) -> u32`
found type `&for<'r> fn(&'r B) -> u32 {B::func}`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.