Add ..= const { .. } missing tests and sort them properly

This commit is contained in:
Santiago Pastorino 2020-10-20 18:53:13 -03:00
parent 83abed9df6
commit 5bef429dac
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF

View File

@ -6,6 +6,11 @@ fn main() {
const N: u32 = 10;
let x: u32 = 3;
match x {
1 ..= const { N + 1 } => {},
_ => {},
}
match x {
const { N - 1 } ..= 10 => {},
_ => {},
@ -16,11 +21,6 @@ fn main() {
_ => {},
}
match x {
1 ..= const { N + 1 } => {},
_ => {},
}
match x {
.. const { N + 1 } => {},
_ => {},
@ -30,4 +30,9 @@ fn main() {
const { N - 1 } .. => {},
_ => {},
}
match x {
..= const { N + 1 } => {},
_ => {}
}
}