Skip to content

Commit 5bef429

Browse files
committed
Add ..= const { .. } missing tests and sort them properly
1 parent 83abed9 commit 5bef429

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/test/ui/inline-const/const-match-pat-range.rs

+8-3
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ fn main() {
77
let x: u32 = 3;
88

99
match x {
10-
const { N - 1 } ..= 10 => {},
10+
1 ..= const { N + 1 } => {},
1111
_ => {},
1212
}
1313

1414
match x {
15-
const { N - 1 } ..= const { N + 1 } => {},
15+
const { N - 1 } ..= 10 => {},
1616
_ => {},
1717
}
1818

1919
match x {
20-
1 ..= const { N + 1 } => {},
20+
const { N - 1 } ..= const { N + 1 } => {},
2121
_ => {},
2222
}
2323

@@ -30,4 +30,9 @@ fn main() {
3030
const { N - 1 } .. => {},
3131
_ => {},
3232
}
33+
34+
match x {
35+
..= const { N + 1 } => {},
36+
_ => {}
37+
}
3338
}

0 commit comments

Comments
 (0)