Revert #75463
This was approved by me prematurely. It needs T-libs approval.
This commit is contained in:
parent
1fd8636d24
commit
4404cc5bc7
2 changed files with 2 additions and 19 deletions
|
|
@ -1,15 +0,0 @@
|
|||
// run-pass
|
||||
|
||||
use std::cmp::Ordering;
|
||||
|
||||
// the following methods of core::cmp::Ordering are const:
|
||||
// - reverse
|
||||
// - then
|
||||
|
||||
fn main() {
|
||||
const REVERSE : Ordering = Ordering::Greater.reverse();
|
||||
assert_eq!(REVERSE, Ordering::Less);
|
||||
|
||||
const THEN : Ordering = Ordering::Equal.then(REVERSE);
|
||||
assert_eq!(THEN, Ordering::Less);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue