2 #![allow(unused_variables)]
3 // Test implicit coercions from a fn item type to a fn pointer type.
5 // pretty-expanded FIXME #23616
7 fn foo(x: isize) -> isize { x * 2 }
8 fn bar(x: isize) -> isize { x * 4 }
9 type IntMap = fn(isize) -> isize;
11 fn eq<T>(x: T, y: T) { }
16 eq::<IntMap>(foo, bar);