// run-pass #![allow(unused_variables)] // Test implicit coercions from a fn item type to a fn pointer type. // pretty-expanded FIXME #23616 fn foo(x: isize) -> isize { x * 2 } fn bar(x: isize) -> isize { x * 4 } type IntMap = fn(isize) -> isize; fn eq(x: T, y: T) { } fn main() { let f: IntMap = foo; eq::(foo, bar); }