Feature gate: #![feature(const_ord)]
This is a tracking issue for the PartialOrd and Ord traits' constness, allowing comparison operators other than on primitive types to be used in const contexts.
Public API
const {
Some(42).cmp(None)
}
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
Unresolved Questions
Feature gate:
#![feature(const_ord)]This is a tracking issue for the
PartialOrdandOrdtraits' constness, allowing comparison operators other than on primitive types to be used in const contexts.Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩