rust/tests/ui/inline-const/const-match-pat-inference.rs

13 lines
216 B
Rust
Raw Normal View History

2021-10-03 10:03:34 -05:00
// check-pass
#![feature(inline_const_pat)]
2021-10-03 10:03:34 -05:00
#![allow(incomplete_features)]
fn main() {
match 1u64 {
0 => (),
const { 0 + 1 } => (),
const { 2 - 1 } ..= const { u64::MAX } => (),
}
}