[已解决]fn pointer 变成了 fn item? 什么是fn item?
📝
内容提要
下面这么写是能跑的, 代码非常简单. use core::future::Future; async fn haha(ctx: u8) -> u8 { return 2u8; } fn set_func<T>(path: &'static str, f: fn(u8) -> T) -> u8 where T: Future<Output = u8> + Send +...
➡️