You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fnfoo<T>(a:T) -> T{ a }staticBLOCK_FN:fn(usize) -> uint = foo::<usize>;fnmain(){}
Output:
bug_generic_static_function_ptr.rs:3:37: 3:48 error: paths in constants may only refer to items without type parameters
bug_generic_static_function_ptr.rs:3 static BLOCK_FN: fn(usize) -> uint = foo::<usize>;
^~~~~~~~~~~
error: aborting due to previous error