Builtin indexing not used with non-trivial indices. #33903
Labels
A-const-fn
Area: const fn foo(..) {..}. Pure functions which can be applied at compile time.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
It appears that when it's not obvious the index type is
usize
, we fall back to overloaded indexing:Fails in constant checking, on stable:
And also with the new MIR-based constant checker, on nightly:
The text was updated successfully, but these errors were encountered: