diff options
| author | Christiaan Dirkx <christiaan@dirkx.email> | 2020-09-04 00:40:11 +0200 |
|---|---|---|
| committer | Christiaan Dirkx <christiaan@dirkx.email> | 2020-09-04 00:40:11 +0200 |
| commit | 79d563c819483eaf6e67b6aaaef9d0ca6030337d (patch) | |
| tree | dd5fa943550f060c1eb76e549437f68cae3ef39c /src | |
| parent | ea5dc0909ea1ed4135f1bdecbaa3423051be578d (diff) | |
| download | rust-79d563c819483eaf6e67b6aaaef9d0ca6030337d.tar.gz rust-79d563c819483eaf6e67b6aaaef9d0ca6030337d.zip | |
Move const tests for `Ordering` to `library\core`
Part of #76268
Diffstat (limited to 'src')
| -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); -} |
