3 #![cfg_attr(full, feature(const_generics))]
4 #![cfg_attr(full, allow(incomplete_features))]
6 fn i32_identity<const X: i32>() -> i32 {
11 i32_identity::<-1>(); // ok
15 i32_identity::<1 + 2>(); //~ ERROR expressions must be enclosed in braces
19 i32_identity::< -1 >(); // ok
23 i32_identity::<5>(); // ok