We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83abed9 commit 5bef429Copy full SHA for 5bef429
src/test/ui/inline-const/const-match-pat-range.rs
@@ -7,17 +7,17 @@ fn main() {
7
let x: u32 = 3;
8
9
match x {
10
- const { N - 1 } ..= 10 => {},
+ 1 ..= const { N + 1 } => {},
11
_ => {},
12
}
13
14
15
- const { N - 1 } ..= const { N + 1 } => {},
+ const { N - 1 } ..= 10 => {},
16
17
18
19
20
- 1 ..= const { N + 1 } => {},
+ const { N - 1 } ..= const { N + 1 } => {},
21
22
23
@@ -30,4 +30,9 @@ fn main() {
30
const { N - 1 } .. => {},
31
32
33
+
34
+ match x {
35
+ ..= const { N + 1 } => {},
36
+ _ => {}
37
+ }
38
0 commit comments