rust/tests/ui/inline-const/const-match-pat-inference.rs
2024-02-16 20:02:50 +00:00

12 lines
186 B
Rust

//@ check-pass
#![feature(inline_const_pat)]
fn main() {
match 1u64 {
0 => (),
const { 0 + 1 } => (),
const { 2 - 1 } ..= const { u64::MAX } => (),
}
}