A non-const function was called inside a constant or static expression. All functions used in const contexts must be marked with the const keyword so they can be evaluated at compile time.
E0015
rust A non-const function was called inside a constant or static expression. All functions used in const contexts must be marked with the const keyword so they can be evaluated at compile time.