diff options
author | David Tolnay <dtolnay@gmail.com> | 2019-03-11 11:42:25 -0700 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2019-03-11 11:42:25 -0700 |
commit | a5f4090a1305503caf363af27297d76886b89597 (patch) | |
tree | f959af8f87ada4f7d230168e7a421fc8e09274c0 /tests | |
parent | 5659ef7ce9dcea0d33f48976b9086bbcdb783552 (diff) | |
download | remain-a5f4090a1305503caf363af27297d76886b89597.tar.gz |
Test underscore pattern is sorted last
Diffstat (limited to 'tests')
-rw-r--r-- | tests/stable.rs | 3 | ||||
-rw-r--r-- | tests/unstable.rs | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/stable.rs b/tests/stable.rs index 687aa68..1bf49f4 100644 --- a/tests/stable.rs +++ b/tests/stable.rs @@ -3,6 +3,7 @@ pub enum TestEnum { A, B, C, + D, } #[test] @@ -15,6 +16,7 @@ fn test_match() { TestEnum::A => {} TestEnum::B => {} TestEnum::C => {} + _ => {} }; } @@ -28,5 +30,6 @@ fn test_let() { TestEnum::A => {} TestEnum::B => {} TestEnum::C => {} + _ => {} } } diff --git a/tests/unstable.rs b/tests/unstable.rs index 0dba0a3..1d78c27 100644 --- a/tests/unstable.rs +++ b/tests/unstable.rs @@ -5,6 +5,7 @@ pub enum TestEnum { A, B, C, + D, } #[test] @@ -16,6 +17,7 @@ fn test_match() { TestEnum::A => {} TestEnum::B => {} TestEnum::C => {} + _ => {} }; } @@ -28,5 +30,6 @@ fn test_let() { TestEnum::A => {} TestEnum::B => {} TestEnum::C => {} + _ => {} } } |