summaryrefslogtreecommitdiffstats
path: root/src/test/ui/static/static-reference-to-fn-1.stderr
blob: 67b478bdb75c35a38f662e1609457ae083522fb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0308]: mismatched types
  --> $DIR/static-reference-to-fn-1.rs:17:15
   |
LL |         func: &foo,
   |               ^^^^ expected fn pointer, found fn item
   |
   = note: expected reference `&fn() -> Option<isize>`
              found reference `&fn() -> Option<isize> {foo}`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.