1 /* Any copyright is dedicated to the Public Domain. 2 * http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 struct X; foo<T>(_: T)5fn foo<T>(_: T) {} bar<T: Fn(u32)>(_: T)6fn bar<T: Fn(u32)>(_: T) {} 7 main()8fn main() { 9 let x = X; 10 let closure = |_| foo(x); //~ ERROR E0525 11 bar(closure); 12 } 13