2 #![feature(inline_const_pat)]
3 #![allow(incomplete_features)]
6 const fn one() -> i32 {
10 const fn two() -> i32 {
14 const fn three() -> i32 {
19 // rust-lang/rust#78171: dead_code lint triggers even though function is used in const pattern
26 fn inline_const_range() {
28 1 ..= const { two() } => {}
33 struct S<const C: i32>;
35 fn const_generic_arg() {