diff options
author | Santiago Pastorino <spastorino@gmail.com> | 2020-10-20 18:53:13 -0300 |
---|---|---|
committer | Santiago Pastorino <spastorino@gmail.com> | 2020-10-22 13:22:14 -0300 |
commit | 5bef429dacb216b45a6bfa4c020d108c1d8e726e (patch) | |
tree | 264d73071b3296b0f88a8d974d2e7d12ff7a29cb | |
parent | 83abed9df6ad0a8881270f166a02ffcaf437422f (diff) | |
download | rust-5bef429dacb216b45a6bfa4c020d108c1d8e726e.tar.gz |
Add ..= const { .. } missing tests and sort them properly
-rw-r--r-- | src/test/ui/inline-const/const-match-pat-range.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/test/ui/inline-const/const-match-pat-range.rs b/src/test/ui/inline-const/const-match-pat-range.rs index c50c4f42848..eefe43a1a22 100644 --- a/src/test/ui/inline-const/const-match-pat-range.rs +++ b/src/test/ui/inline-const/const-match-pat-range.rs @@ -7,17 +7,17 @@ fn main() { let x: u32 = 3; match x { - const { N - 1 } ..= 10 => {}, + 1 ..= const { N + 1 } => {}, _ => {}, } match x { - const { N - 1 } ..= const { N + 1 } => {}, + const { N - 1 } ..= 10 => {}, _ => {}, } match x { - 1 ..= const { N + 1 } => {}, + const { N - 1 } ..= const { N + 1 } => {}, _ => {}, } @@ -30,4 +30,9 @@ fn main() { const { N - 1 } .. => {}, _ => {}, } + + match x { + ..= const { N + 1 } => {}, + _ => {} + } } |