rust compile appear: "------function declared as const here" Andrew_Ryan 2022-03-30 122 阅读1分钟 1.open this Crates's lib.rs or main.rs file and add this line to the top #![feature(const_fn_trait_bound)]