3 #![cfg_attr(full, feature(const_generics))]
4 #![cfg_attr(full, allow(incomplete_features))]
5 #![cfg_attr(min, feature(min_const_generics))]
7 fn i32_identity<const X: i32>() -> i32 {
12 i32_identity::<-1>(); // ok
16 i32_identity::<1 + 2>(); //~ ERROR expected one of `,` or `>`, found `+`
20 i32_identity::< -1 >(); // ok
24 i32_identity::<5>(); // ok