about summary refs log tree commit diff
path: root/src/test/ui/inline-const
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2020-10-20 18:53:13 -0300
committerSantiago Pastorino <spastorino@gmail.com>2020-10-22 13:22:14 -0300
commit5bef429dacb216b45a6bfa4c020d108c1d8e726e (patch)
tree264d73071b3296b0f88a8d974d2e7d12ff7a29cb /src/test/ui/inline-const
parent83abed9df6ad0a8881270f166a02ffcaf437422f (diff)
downloadrust-5bef429dacb216b45a6bfa4c020d108c1d8e726e.tar.gz
rust-5bef429dacb216b45a6bfa4c020d108c1d8e726e.zip
Add ..= const { .. } missing tests and sort them properly
Diffstat (limited to 'src/test/ui/inline-const')
-rw-r--r--src/test/ui/inline-const/const-match-pat-range.rs11
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 } => {},
+        _ => {}
+    }
 }