diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-08-31 10:20:34 -0700 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-08-31 10:22:14 -0700 |
| commit | 4404cc5bc7c4b2e9f2f446bca0e59531c1bfce05 (patch) | |
| tree | 7505593d3453a5b31170266f30734bc25cd4c808 /src/test | |
| parent | 1fd8636d2428658cf46df53fb4f445558689fd1c (diff) | |
Revert #75463
This was approved by me prematurely. It needs T-libs approval.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/consts/const-ordering.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/ui/consts/const-ordering.rs b/src/test/ui/consts/const-ordering.rs deleted file mode 100644 index 454f2da00df..00000000000 --- a/src/test/ui/consts/const-ordering.rs +++ /dev/null @@ -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); -} |
