Add ..= const { .. } missing tests and sort them properly
This commit is contained in:
parent
83abed9df6
commit
5bef429dac
1 changed files with 10 additions and 5 deletions
|
|
@ -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 } => {},
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue