1 error[E0308]: mismatched types
2 --> $DIR/static-reference-to-fn-1.rs:17:15
5 | ^^^^ expected fn pointer, found fn item
7 = note: expected reference `&fn() -> Option<isize>`
8 found reference `&fn() -> Option<isize> {foo}`
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0308`.