1 // Checks that `const fn` with const params can be used.
5 #![cfg_attr(full, feature(const_generics))]
6 #![cfg_attr(full, allow(incomplete_features))]
7 #![cfg_attr(min, feature(min_const_generics))]
9 const fn const_u32_identity<const X: u32>() -> u32 {
14 assert_eq!(const_u32_identity::<18>(), 18);