Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Mixed signals from errors about trait const fns #64947
I was trying to define a trait method as const, but it turned out in an error, which, according to RFC911 is a design decision, and the tracking issue for const fn doesn't seem to indicate any change in that matter.
However, the errors I got from the compiler give mixed signals:
This could be interpreted as "trait fns cannot be declared const... yet", while the current status is more like "trait fns cannot be declared const now or in the foreseeable future".