mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Add ..= const { .. } missing tests and sort them properly
This commit is contained in:
parent
83abed9df6
commit
5bef429dac
@ -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…
Reference in New Issue
Block a user