]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inline-const/const-match-pat-inference.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / inline-const / const-match-pat-inference.rs
1 // check-pass
2
3 #![feature(inline_const_pat)]
4 #![allow(incomplete_features)]
5
6 fn main() {
7     match 1u64 {
8         0 => (),
9         const { 0 + 1 } => (),
10         const { 2 - 1 } ..= const { u64::MAX } => (),
11     }
12 }